Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 15, 2007, 11:12:29 AM (17 years ago)
Author:
rennerc
Message:

FPSSniperRifle uses BspWeapon now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/weapons/bsp_weapon.h

    r10698 r10704  
    5151                ObjectListDeclaration(BspWeapon);
    5252        public:
    53                 BspWeapon ();
     53                BspWeapon ( OM_LIST list );
    5454                BspWeapon (const  TiXmlElement* root);
    5555                virtual ~BspWeapon();
    5656
    57                 void init();
     57                void init( OM_LIST list );
    5858                void loadParams(const TiXmlElement* root);
    59                 void fire(bool fire){ bFire = fire; }
     59                void fire(bool fire){ this->bFire = fire; }
    6060                virtual void tick(float dt);
    6161                virtual void draw() const;
    6262
    63 
     63                void setAlwaysHits( bool r ){ this->alwaysHits = r; }
     64                void setDamage( float d ){ this->damage = d; }
    6465        private:
    6566
     
    6869                void setRange( float r ){ this->range = r; }
    6970                float damage;
    70                 void setDamage( float d ){ this->damage = d; }
    7171                float fireRate;
    7272                void setFireRate( float r ){ this->fireRate = r; }
    7373                bool alwaysHits;
    74                 void setAlwaysHits( bool r ){ this->alwaysHits = r; }
    7574                void addPoint(float x, float y, float z);
    7675               
Note: See TracChangeset for help on using the changeset viewer.