Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 21, 2007, 12:44:02 AM (16 years ago)
Author:
rgrieder
Message:
  • modified the AmmunitionDump to hold different types of ammo
  • converted the RunManager into a Singleton
  • added some methods to address ammo by string
  • created a BaseWeapon class
  • derived BarrelGun from BaseWeapon
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/main_reto_vs05/src/weapon/base_weapon.h

    r198 r232  
    5858
    5959  public:
    60     BaseWeapon(Ogre::SceneManager*, InertialNode*, BulletManager*,
    61           AmmunitionDump*);
     60    BaseWeapon(InertialNode*, AmmunitionDump*);
    6261          virtual ~BaseWeapon();
    6362
     
    7372
    7473  protected:
    75     void primaryFire();
     74    virtual void primaryFire() = 0;
    7675
    77     void primaryFiring(unsigned int);
     76    virtual void primaryFiring(unsigned int) = 0;
    7877
    79     void secondaryFire();
     78    virtual void secondaryFire() = 0;
    8079
    81     void secondaryFiring(unsigned int);
     80    virtual void secondaryFiring(unsigned int) = 0;
    8281
    8382  public:
Note: See TracChangeset for help on using the changeset viewer.