Changeset 9003 in orxonox.OLD for trunk/src/world_entities/world_entity.h
- Timestamp:
- Jul 2, 2006, 1:36:13 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/world_entity.h
r8974 r9003 94 94 CollisionHandle* getCollisionHandle(CREngine::CRType type) const { return this->collisionHandles[type]; } 95 95 96 /** @returns true if this entity is standing on ground (BSP model) */ 97 bool isOnGround() const { return this->bOnGround; } 98 /** @param flag: marks if this entity is standing on ground */ 99 void setOnGround(bool flag) { this->bOnGround = flag; } 100 96 101 virtual void hit(float damage); 97 102 virtual void destroy(); … … 117 122 118 123 void hide() { if( this->objectListNumber != OM_DEAD) this->lastObjectListNumber = this->objectListNumber; this->toList(OM_DEAD); } 119 void unhide() { this->toList(this->lastObjectListNumber); }124 void unhide() { if( this->objectListNumber != this->lastObjectListNumber) this->toList(this->lastObjectListNumber); } 120 125 121 126 … … 194 199 195 200 PhysicsInterface physicsInterface; //!< the physics object of the WorldEntity 196 201 bool bOnGround; //!< true if this entity is standing on the ground 197 202 198 203 protected:
Note: See TracChangeset
for help on using the changeset viewer.