Line | |
---|
1 | /*! |
---|
2 | * @file mover_trigger_list.h |
---|
3 | * A list to store and handle several triggers. |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _MOVER_TRIGGER_LIST_H |
---|
7 | #define _MOVER_TRIGGER_LIST_H |
---|
8 | |
---|
9 | #include "mover_trigger.h" |
---|
10 | |
---|
11 | |
---|
12 | class MoverTrigger; |
---|
13 | |
---|
14 | class MoverTriggerListElement |
---|
15 | { |
---|
16 | public: |
---|
17 | MoverTriggerListElement(MoverTrigger *trigger); |
---|
18 | ~MoverTriggerListElement(); |
---|
19 | |
---|
20 | MoverTrigger *trigger; |
---|
21 | MoverTriggerListElement *next; |
---|
22 | }; |
---|
23 | |
---|
24 | |
---|
25 | class MoverTriggerList |
---|
26 | { |
---|
27 | public: |
---|
28 | MoverTriggerList(); |
---|
29 | ~MoverTriggerList(); |
---|
30 | |
---|
31 | void addTrigger(MoverTrigger *trigger); |
---|
32 | bool isTriggered(); |
---|
33 | void setBaseCoor(Vector baseCoor); |
---|
34 | |
---|
35 | private: |
---|
36 | MoverTriggerListElement *first; |
---|
37 | }; |
---|
38 | |
---|
39 | |
---|
40 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.