Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8217 in orxonox.OLD for branches/bsp_model/src/world_entities


Ignore:
Timestamp:
Jun 7, 2006, 9:57:13 PM (18 years ago)
Author:
patrick
Message:

bsp: major restructure: going over bsp_entity for collision detection. adjusting interfaces

Location:
branches/bsp_model/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/bsp_model/src/world_entities/bsp_entity.h

    r8186 r8217  
    1818class BSPEntity : public WorldEntity
    1919{
    20  
     20
    2121 public:
    2222  BSPEntity(const TiXmlElement* root = NULL);
     
    2424
    2525  virtual void loadParams(const TiXmlElement* root);
    26  
     26
    2727  void setName(const std::string& name);
    2828
     
    3333  virtual void collidesWith (WorldEntity* entity, const Vector& location);
    3434
     35  /** @returns the BspManager of this entity */
     36  inline BspManager* getBspManager() { return this->bspManager; }
     37
    3538 private:
    3639   BspManager* bspManager;
  • branches/bsp_model/src/world_entities/playable.cc

    r8147 r8217  
    6666  this->bDead = false;
    6767
     68  this->subscribeReaction(CREngine::CR_PHYSICS_GROUND_WALK, CL_BSP_MODEL);
     69
    6870  registerVar( new SynchronizeableInt( &score, &score, "score" ) );
    6971  registerVar( new SynchronizeableBool( &bFire, &bFire, "bFire", PERMISSION_OWNER));
     
    7981  // this->setPlayer(NULL);
    8082  // IN ITS DESTRUCTOR.
    81  
     83
    8284  assert(this->currentPlayer == NULL);
    8385}
Note: See TracChangeset for help on using the changeset viewer.