avp_mod is an open source project powered by Assembla

Assembla offers free public and private SVN/Git repositories and project hosting with bug/issue tracking and collaboration tools.

Commitebd360ec63ec976c0...
/include
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#include "track.h"

typedef enum platformlift_states
{
    PLBS_AtRest,
    PLBS_Activating,
    PLBS_GoingUp,
    PLBS_GoingDown

} PLATFORMLIFT_STATES;

typedef struct platformlift_behaviour_type
{
    VECTORCH homePosition;
    int upHeight;
    int downHeight;
    int activationDelayTimer;
    PLATFORMLIFT_STATES    state;

    TRACK_SOUND* sound;
    TRACK_SOUND* start_sound;
    TRACK_SOUND* end_sound;

    // A switch will set these flags on AssignSBNames

    int Enabled;
    int OneUse; //if set ,lift becomes disabled after changing position once

    int netMsgCount;

} PLATFORMLIFT_BEHAVIOUR_BLOCK;

typedef struct platformlift_tools_template
{
    struct vectorch position;
    struct euler orientation;
    int travel;    /* vertical distance from start position to end position (down = +ve) */
    int Enabled;
    int OneUse;
    char nameID[SB_NAME_LENGTH];

    TRACK_SOUND* sound;
    TRACK_SOUND* start_sound;
    TRACK_SOUND* end_sound;

} PLATFORMLIFT_TOOLS_TEMPLATE;

#define PLATFORMLIFT_SPEED        5000     /* mm/s */
#define PLATFORMLIFT_ACTIVATIONTIME    (ONE_FIXED << 1)
#define PLATFORMLIFT_NUMNETMESSAGES    5

void InitialisePlatformLift(void* bhdata, STRATEGYBLOCK *sbPtr);
void PlatformLiftBehaviour(STRATEGYBLOCK *sbPtr);

void ActivatePlatformLift(STRATEGYBLOCK *sbPtr);
Ajax-loader Loading, please wait...