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/ammunition_dump.h

    r198 r232  
    4141  {
    4242  public:
    43           AmmunitionDump(int capacity);
     43    AmmunitionDump();
    4444          ~AmmunitionDump();
    4545
    46     void store(int quantiy);
     46    void setDumpSize(const Ogre::String &name, int size);
    4747
    48     int getAmmunition(int quantity);
     48    int store(const Ogre::String &name, int quantiy);
    4949
    50     int getStockSize();
     50    int getAmmunition(const Ogre::String &name, int quantity);
     51
     52    int getStockSize(const Ogre::String &name);
    5153
    5254  protected:
    53     int stock_;
    54     int capacity_;
     55    int numberOfAmmos_;
     56    int *stock_;
     57    int *capacity_;
    5558
    5659  protected:
Note: See TracChangeset for help on using the changeset viewer.