Changeset 3575 in orxonox.OLD for orxonox/trunk/src/world_entities/weapon.h
- Timestamp:
- Mar 16, 2005, 4:24:09 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/weapon.h
r3573 r3575 16 16 weapon in this world: 17 17 o sound file/ressource: this is a pointer to the sound-file/ressource. however it may be represented 18 o shooting animation 18 19 19 20 */ … … 25 26 #include "world_entity.h" 26 27 28 class Projectile; 27 29 28 30 class Weapon : public WorldEntity … … 34 36 virtual ~Weapon (); 35 37 36 virtual void tick (float time); 38 void setProjectile(Projectile* projectile); 39 Projectile* getProjectile(); 40 41 void activate(); 42 void deactivate(); 43 bool isActive(); 44 45 void setWeaponEnergy(int energy); 46 void addWeaponEnergy(int addEnergy); 47 void substractWeaponEnergy(int subEnergy); 48 int getWeaponEnergy(); 49 50 void fire(); 37 51 virtual void hit (WorldEntity* weapon, Vector loc); 38 52 virtual void destroy (); 39 virtual void collide (WorldEntity* other, Uint32 ownhitflags, Uint32 otherhitflags); 53 54 virtual void tick (float time); 40 55 virtual void draw (); 56 41 57 42 58 private: 43 59 float firingRate; 60 float localTime; 44 61 float slowDownFactor; 45 62 int energyConsumption; 63 Projectile* projectile; 46 64 47 65 };
Note: See TracChangeset
for help on using the changeset viewer.