Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4523 in orxonox.OLD for orxonox/trunk/src/util


Ignore:
Timestamp:
Jun 7, 2005, 12:21:03 AM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: defined a set of cd_engine functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/util/collision_detection/cd_engine.h

    r4522 r4523  
    1111#include "collision_defs.h"
    1212
     13template<class T> class tList;
     14class WorldEntity;
    1315
    14 //! the state options
     16//! featured state options, they are all additive
    1517typedef enum cdState
    1618  {
     
    3234  void init();
    3335
    34   void setState(int newState);
     36  void setState(const int newState) { this->state = newState; }
    3537  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;}
    3640
    3741  void drawBV(int currentDepth, int depth) const;
     
    4549  static CDEngine* singletonRef;
    4650
    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();
    4855
    4956
    5057 private:
    51   int         state;                            //!< the current state of the cd engine
    52 
     58  int                     state;                            //!< the current state of the cd engine
     59  tList<WorldEntity>*     entityList;                       //!< pointer to the world entity list
    5360};
    5461
Note: See TracChangeset for help on using the changeset viewer.