Last change
on this file since 3608 was
3608,
checked in by patrick, 19 years ago
|
orxonox/trunk: now there is a real speedup in compiling time when dependencies are modified: just realy only includes, what is needed. Byside the speedup, there is more overview! never add an orxonox class to stdincl.h if it doesn't have to be
|
File size:
660 bytes
|
Line | |
---|
1 | #ifndef _PRIMITIVE_H |
---|
2 | #define _PRIMITIVE_H |
---|
3 | |
---|
4 | #include "world_entity.h" |
---|
5 | #include "glincl.h" |
---|
6 | |
---|
7 | typedef enum PRIMITIVE_FORM {PSPHERE = 0, PCUBE, PSQUARE}; |
---|
8 | |
---|
9 | class Material; |
---|
10 | |
---|
11 | |
---|
12 | class Primitive : public WorldEntity |
---|
13 | { |
---|
14 | friend class World; |
---|
15 | |
---|
16 | public: |
---|
17 | Primitive (PRIMITIVE_FORM form); |
---|
18 | virtual ~Primitive (); |
---|
19 | |
---|
20 | virtual void tick (float time); |
---|
21 | virtual void hit (WorldEntity* weapon, Vector* loc); |
---|
22 | virtual void collide (WorldEntity* other, Uint32 ownhitflags, Uint32 otherhitflags); |
---|
23 | virtual void draw (); |
---|
24 | |
---|
25 | private: |
---|
26 | GLUquadricObj *object; //!< the object to be rendered |
---|
27 | Material *material; //!< A Material for the SkySphere. |
---|
28 | |
---|
29 | }; |
---|
30 | |
---|
31 | #endif /* _PRIMITIVE_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.