Changeset 8931 in orxonox.OLD for branches/single_player_map/src/world_entities/npcs/repair_station.h
- Timestamp:
- Jun 30, 2006, 12:20:28 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/single_player_map/src/world_entities/npcs/repair_station.h
r8927 r8931 12 12 typedef enum RepairStationAnimType 13 13 { 14 STATION_OPEN = 0, 15 STATION_CLOSE, 14 REPAIR_CYCLE01 = 0, 15 REPAIR_CYCLE02, 16 REPAIR_CYCLE03, 17 REPAIR_CYCLE04, 18 REPAIR_CYCLE05, 19 REPAIR_CYCLE06, 20 REPAIR_CYCLE07, 21 REPAIR_CYCLE08, 16 22 17 23 DOOR_MAX_ANIMATIONS … … 31 37 void setScale(float scale) { this->scale = scale; } 32 38 33 void open();34 void close();35 36 void lock() { this->bLocked = true; }37 void unlock() { this->bLocked = false; }38 bool isLocked() const { return this->bLocked; }39 40 41 39 virtual void tick (float time); 42 40 43 41 44 42 private: 45 bool checkOpen();46 43 void setAnimation(int animNum, int playbackMode = 0); 47 44 48 45 49 46 private: 50 bool bOpen; //!< true if the door is open51 bool bLocked; //!< true if this door is locked52 float actionRadius; //!< action radius53 47 float scale; //!< the scale of the model 54 48 55 static sAnim animationList[ 2]; //!< list of the animations49 static sAnim animationList[8]; //!< list of the animations 56 50 57 51
Note: See TracChangeset
for help on using the changeset viewer.