Changeset 10704 in orxonox.OLD for branches/presentation/src/world_entities/weapons/bsp_weapon.h
- Timestamp:
- Jun 15, 2007, 11:12:29 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/weapons/bsp_weapon.h
r10698 r10704 51 51 ObjectListDeclaration(BspWeapon); 52 52 public: 53 BspWeapon ( );53 BspWeapon ( OM_LIST list ); 54 54 BspWeapon (const TiXmlElement* root); 55 55 virtual ~BspWeapon(); 56 56 57 void init( );57 void init( OM_LIST list ); 58 58 void loadParams(const TiXmlElement* root); 59 void fire(bool fire){ bFire = fire; }59 void fire(bool fire){ this->bFire = fire; } 60 60 virtual void tick(float dt); 61 61 virtual void draw() const; 62 62 63 63 void setAlwaysHits( bool r ){ this->alwaysHits = r; } 64 void setDamage( float d ){ this->damage = d; } 64 65 private: 65 66 … … 68 69 void setRange( float r ){ this->range = r; } 69 70 float damage; 70 void setDamage( float d ){ this->damage = d; }71 71 float fireRate; 72 72 void setFireRate( float r ){ this->fireRate = r; } 73 73 bool alwaysHits; 74 void setAlwaysHits( bool r ){ this->alwaysHits = r; }75 74 void addPoint(float x, float y, float z); 76 75
Note: See TracChangeset
for help on using the changeset viewer.