Changeset 8941 in orxonox.OLD for branches/single_player_map/src
- Timestamp:
- Jun 30, 2006, 2:55:49 AM (18 years ago)
- Location:
- branches/single_player_map/src/world_entities
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/single_player_map/src/world_entities/npcs/repair_station.cc
r8931 r8941 120 120 121 121 122 123 124 125 void RepairStation::activate() 126 {} 127 128 void RepairStation::deactivate() 129 {} 130 131 void RepairStation::toggleRotation() 132 {} 133 134 122 135 /** 123 136 * ticks the door … … 129 142 ((InteractiveModel*)this->getModel(0))->tick(time); 130 143 131 if( !this->bOpen)132 {133 if( this->checkOpen())134 {135 this->open();136 }137 }138 else139 {140 if( !this->checkOpen())141 {142 this->close();143 }144 }145 144 146 145 } -
branches/single_player_map/src/world_entities/npcs/repair_station.h
r8931 r8941 21 21 REPAIR_CYCLE08, 22 22 23 DOOR_MAX_ANIMATIONS23 REPAIR_MAX_ANIMATIONS 24 24 }; 25 25 … … 37 37 void setScale(float scale) { this->scale = scale; } 38 38 39 void activate(); 40 void deactivate(); 41 void toggleRotation(); 42 39 43 virtual void tick (float time); 40 44 … … 49 53 static sAnim animationList[8]; //!< list of the animations 50 54 55 int animationCurrent; //!< number of the current animation 56 int animationStep; //!< the incrementation step of the animation 51 57 52 58 }; -
branches/single_player_map/src/world_entities/world_entity.cc
r8940 r8941 76 76 77 77 this->objectListNumber = OM_INIT; 78 this->lastObjectListNumber = OM_INIT; 78 79 this->objectListIterator = NULL; 79 80 -
branches/single_player_map/src/world_entities/world_entity.h
r8939 r8941 95 95 96 96 /** @returns true if this entity is standing on ground (BSP model) */ 97 bool isOnGround() const { return this-> isOnGround(); }97 bool isOnGround() const { return this->bOnGround; } 98 98 /** @param flag: marks if this entity is standing on ground */ 99 99 void setOnGround(bool flag) { this->bOnGround = flag; }
Note: See TracChangeset
for help on using the changeset viewer.