Line | |
---|
1 | /*! |
---|
2 | * @file mover_trigger_delay_list.h |
---|
3 | * A list to delay trigger-state-changes. |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _MOVER_TRIGGER_DELAY_LIST_H |
---|
7 | #define _MOVER_TRIGGER_DELAY_LIST_H |
---|
8 | |
---|
9 | |
---|
10 | class MoverTriggerDelayListElement |
---|
11 | { |
---|
12 | public: |
---|
13 | MoverTriggerDelayListElement(bool state, bool oldState, float time); |
---|
14 | ~MoverTriggerDelayListElement(); |
---|
15 | |
---|
16 | bool state; |
---|
17 | bool oldState; |
---|
18 | float time; |
---|
19 | MoverTriggerDelayListElement *next; |
---|
20 | }; |
---|
21 | |
---|
22 | |
---|
23 | class MoverTriggerDelayList |
---|
24 | { |
---|
25 | public: |
---|
26 | MoverTriggerDelayList(); |
---|
27 | ~MoverTriggerDelayList(); |
---|
28 | |
---|
29 | void addState(bool state, bool oldState, float time); |
---|
30 | void deleteFirstState(); |
---|
31 | MoverTriggerDelayListElement *getFirstState(); |
---|
32 | MoverTriggerDelayListElement *getLastState(); |
---|
33 | bool isEmpty(); |
---|
34 | |
---|
35 | private: |
---|
36 | MoverTriggerDelayListElement *first; |
---|
37 | }; |
---|
38 | |
---|
39 | |
---|
40 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.