- Timestamp:
- Mar 16, 2005, 5:16:40 PM (20 years ago)
- Location:
- orxonox/trunk/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/weapon.cc
r3576 r3577 47 47 48 48 49 /** 50 \brief enables the weapon 51 52 a weapon can be enabled/disabled because of various reasons. if a weapon is 53 been enabled, it can interact in a world. elswhere it wont react to any 54 action. 55 */ 56 void Weapon::enable() 57 {} 58 59 60 /** 61 \brief disables the weapon 62 63 a weapon can be enabled/disabled because of various reasons. if a weapon is 64 been enabled, it can interact in a world. elswhere it wont react to any 65 action. 66 */ 67 void Weapon::disable() 68 {} 69 70 71 /** 72 \brief checks if the weapon is enabled 73 \returns true if enabled 74 75 a weapon can be ebabled/disabled because of various reasons. if a weapon is 76 been enabled, it can interact in a world. elswhere it wont react to any 77 action. 78 */ 79 bool Weapon::isEnabled() 80 {} 81 82 49 83 /** 50 84 \brief sets a new projectile to the weapon … … 139 173 140 174 /** 141 \brief tick signal for time dependent/driven stuff 142 */ 143 void Weapon::tick (float time) 144 {} 175 \brief fires the weapon 176 177 this is called from the player.cc, when fire-button is been pushed 178 */ 179 void Weapon::fire() 180 {} 181 145 182 146 183 /** … … 155 192 {} 156 193 194 157 195 /** 158 196 \brief is called, when the weapon is destroyed … … 162 200 */ 163 201 void Weapon::destroy () 202 {} 203 204 205 /** 206 \brief tick signal for time dependent/driven stuff 207 */ 208 void Weapon::tick (float time) 164 209 {} 165 210 -
orxonox/trunk/src/world_entities/weapon.h
r3576 r3577 36 36 virtual ~Weapon (); 37 37 38 void enable(); 39 void disable(); 40 bool isEnabled(); 41 38 42 void setProjectile(Projectile* projectile); 39 43 Projectile* getProjectile(); … … 57 61 58 62 private: 63 bool enabled; 59 64 float firingRate; 60 65 float localTime;
Note: See TracChangeset
for help on using the changeset viewer.