|
Last change
on this file since 2037 was
2036,
checked in by patrick, 21 years ago
|
|
orxonxo/trunk/src: extended framework: class inheritance, right including (had som bugs), framework not finished yet
|
|
File size:
806 bytes
|
| Rev | Line | |
|---|
| [2036] | 1 | |
|---|
| 2 | #ifndef WORLD_ENTITY_H |
|---|
| 3 | #define WORLD_ENTITY_H |
|---|
| 4 | |
|---|
| 5 | #include "data_tank.h" |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | class WorldEntity { |
|---|
| 9 | |
|---|
| 10 | public: |
|---|
| 11 | WorldEntity (); |
|---|
| 12 | ~WorldEntity (); |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | /*void setPosition( Vector position );*/ |
|---|
| 16 | /* Vector* void getPosition();*/ |
|---|
| 17 | void setOrientation(/* Vector orientation*/); |
|---|
| 18 | /* Vector* */ void getOrientation(); |
|---|
| 19 | void setSpeed(float speed); |
|---|
| 20 | float getSpeed(); |
|---|
| 21 | void setHealth(float health); |
|---|
| 22 | float getHealth(); |
|---|
| 23 | |
|---|
| 24 | void addAbility(); |
|---|
| 25 | void removeAbility(); |
|---|
| 26 | |
|---|
| 27 | virtual void tick(float dt); |
|---|
| 28 | virtual void paint(); |
|---|
| 29 | /* virtual void actionEvent(Event* event); */ |
|---|
| 30 | virtual void collide(WorldEntity* we /*, Vector n */); |
|---|
| 31 | virtual void hurt(); |
|---|
| 32 | virtual void destroy(); |
|---|
| 33 | |
|---|
| 34 | private: |
|---|
| 35 | /* Vector* position; */ |
|---|
| 36 | /* Vector* orientation; */ |
|---|
| 37 | /* List of abilities */ |
|---|
| 38 | float health; |
|---|
| 39 | float speed; |
|---|
| 40 | |
|---|
| 41 | |
|---|
| 42 | }; |
|---|
| 43 | |
|---|
| 44 | #endif |
|---|
Note: See
TracBrowser
for help on using the repository browser.