Changeset 4523 in orxonox.OLD for orxonox/trunk/src/util
- Timestamp:
- Jun 7, 2005, 12:21:03 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/collision_detection/cd_engine.h
r4522 r4523 11 11 #include "collision_defs.h" 12 12 13 template<class T> class tList; 14 class WorldEntity; 13 15 14 //! the state options16 //! featured state options, they are all additive 15 17 typedef enum cdState 16 18 { … … 32 34 void init(); 33 35 34 void setState( int newState);36 void setState(const int newState) { this->state = newState; } 35 37 const int getState() const { return this->state; } 38 void enable(const int options) { this->state |= options; } 39 void disable(const int options) { int temp = this->state & options; this->state ^= temp;} 36 40 37 41 void drawBV(int currentDepth, int depth) const; … … 45 49 static CDEngine* singletonRef; 46 50 47 void buildBVTree(int depth = MAX_BV_TREE_DEPTH); 51 void spawnBVTree(int depth = MAX_BV_TREE_DEPTH); 52 53 void checkCollisionObjects(); 54 void checkCollisionGround(); 48 55 49 56 50 57 private: 51 int state; //!< the current state of the cd engine52 58 int state; //!< the current state of the cd engine 59 tList<WorldEntity>* entityList; //!< pointer to the world entity list 53 60 }; 54 61
Note: See TracChangeset
for help on using the changeset viewer.