Last change
on this file since 3570 was
3544,
checked in by bensch, 20 years ago
|
orxonox/trunk: now the delete-process is as inteded by c++
virtual ~ClassName extends deletion and deletes also the MasterClass
|
File size:
494 bytes
|
Rev | Line | |
---|
[3524] | 1 | #ifndef _PRIMITIVE_H |
---|
| 2 | #define _PRIMITIVE_H |
---|
| 3 | |
---|
| 4 | #include "world_entity.h" |
---|
| 5 | |
---|
| 6 | typedef enum PRIMITIVE_FORM {PSPHERE = 0, PCUBE, PSQUARE}; |
---|
| 7 | |
---|
| 8 | class Primitive : public WorldEntity |
---|
| 9 | { |
---|
| 10 | friend class World; |
---|
| 11 | |
---|
| 12 | public: |
---|
| 13 | Primitive (PRIMITIVE_FORM form); |
---|
[3531] | 14 | virtual ~Primitive (); |
---|
| 15 | |
---|
[3524] | 16 | virtual void tick (float time); |
---|
| 17 | virtual void hit (WorldEntity* weapon, Vector loc); |
---|
| 18 | virtual void collide (WorldEntity* other, Uint32 ownhitflags, Uint32 otherhitflags); |
---|
| 19 | virtual void draw (); |
---|
| 20 | |
---|
| 21 | }; |
---|
| 22 | |
---|
| 23 | #endif /* _PRIMITIVE_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.