Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/contentcreation/pps/FabianLandau/mover/environments/mover_trigger_delay_list.h

Last change on this file was 4844, checked in by landauf, 17 years ago
File size: 899 bytes
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
10class 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
23class 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.