Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/objecthierarchy/src/orxonox/objects/test2.h @ 706

Last change on this file since 706 was 375, checked in by landauf, 17 years ago

added a "Tickable"-interface
added a "Timer"-class

File size: 1009 bytes
Line 
1#ifndef _Test2_H__
2#define _Test2_H__
3
4#include "BaseObject.h"
5#include "Timer.h"
6
7namespace orxonox
8{
9    class Test3;
10
11    class Test2 : public BaseObject
12    {
13        public:
14            Test2();
15            virtual ~Test2();
16
17            bool usefullClass1isA(Identifier* identifier);
18            bool usefullClass2isA(Identifier* identifier);
19            bool usefullClass3isA(Identifier* identifier);
20            void setUsefullClass1(Identifier* identifier);
21            void setUsefullClass2(Identifier* identifier);
22            void setUsefullClassOfTypeTest3(Identifier* identifier);
23
24            void timerFunction1();
25            void timerFunction2();
26            void timerFunction3();
27
28        private:
29            Identifier* usefullClass1_;
30            Identifier* usefullClass2_;
31            SubclassIdentifier<Test3> usefullClass3_;
32
33            Timer<Test2> timer1;
34            Timer<Test2> timer2;
35            Timer<Test2> timer3;
36    };
37}
38
39#endif
Note: See TracBrowser for help on using the repository browser.