Changeset 4746 in orxonox.OLD for orxonox/trunk/src/world_entities/weapon.h
- Timestamp:
- Jul 1, 2005, 12:48:48 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/weapon.h
r4597 r4746 109 109 virtual ~Weapon (); 110 110 111 void enable( void);112 void disable( void);113 bool isEnabled( void);111 void enable(); 112 void disable(); 113 bool isEnabled(); 114 114 115 115 void setProjectile(Projectile* projectile); 116 Projectile* getProjectile( void);116 Projectile* getProjectile(); 117 117 118 virtual void activate( void);119 virtual void deactivate( void);120 bool isActive( void);118 virtual void activate(); 119 virtual void deactivate(); 120 bool isActive(); 121 121 122 122 … … 136 136 shoot again 137 137 */ 138 inline float getWeaponIdleTime( void) const { return this->idleTime;}138 inline float getWeaponIdleTime() const { return this->idleTime;} 139 139 /** 140 140 \brief checks if the idle time is elapsed … … 144 144 shoot again 145 145 */ 146 inline bool hasWeaponIdleTimeElapsed( void) const { return (this->localTime>this->idleTime)?true:false; }146 inline bool hasWeaponIdleTimeElapsed() const { return (this->localTime>this->idleTime)?true:false; } 147 147 148 148 /** … … 151 151 this is called from the player.cc, when fire-button is been pushed 152 152 */ 153 virtual void fire( void) = 0;153 virtual void fire() = 0; 154 154 virtual void hit (WorldEntity* weapon, Vector* loc); 155 virtual void destroy( void);155 virtual void destroy(); 156 156 157 157 virtual void tick(float time); 158 virtual void weaponIdle( void);159 virtual void draw( void);158 virtual void weaponIdle(); 159 virtual void draw(); 160 160 161 161 protected:
Note: See TracChangeset
for help on using the changeset viewer.