Last change
on this file since 10621 was
9989,
checked in by nicolasc, 18 years ago
|
loads of tests, not really working
|
File size:
606 bytes
|
Line | |
---|
1 | #ifndef _TEST_ENTITY_H |
---|
2 | #define _TEST_ENTITY_H |
---|
3 | |
---|
4 | #include "world_entity.h" |
---|
5 | |
---|
6 | class TiXmlElement; |
---|
7 | class Material; |
---|
8 | |
---|
9 | class TestEntity2 : public WorldEntity |
---|
10 | { |
---|
11 | ObjectListDeclaration(TestEntity2); |
---|
12 | |
---|
13 | public: |
---|
14 | TestEntity2 (); |
---|
15 | TestEntity2(const TiXmlElement* root); |
---|
16 | virtual ~TestEntity2 (); |
---|
17 | |
---|
18 | void init(); |
---|
19 | virtual void loadParams(const TiXmlElement* root); |
---|
20 | |
---|
21 | |
---|
22 | virtual void tick (float time); |
---|
23 | virtual void draw() const; |
---|
24 | |
---|
25 | private: |
---|
26 | virtual void updateAngle(); |
---|
27 | |
---|
28 | Material* material; |
---|
29 | float angle; |
---|
30 | float rotationSpeed; |
---|
31 | }; |
---|
32 | |
---|
33 | #endif /* _TEST_ENTITY_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.