src/Weapon.hh
changeset 253 747b1037d83e
parent 251 6a6208e5c7a1
child 258 833ad8d7db8b
equal deleted inserted replaced
252:25054ce94d07 253:747b1037d83e
    22     bool visible;
    22     bool visible;
    23     TickCount age;
    23     TickCount age;
    24     int reloadTimer;
    24     int reloadTimer;
    25 
    25 
    26 public:
    26 public:
    27     Weapon (TickCount age, float velocity, float explosionRadius, int reloadTime, std::string name);
    27     Weapon (TickCount age, float velocity, float recoil, float explosionRadius, int reloadTime, std::string name);
    28     
    28     
    29     // advance the reload timer
    29     // advance the reload timer
    30     void tickReload (TimeMS dt);
    30     void tickReload (TimeMS dt);
    31     
    31     
    32     // can the weapon be fired (not reloading, have a clip, etc)
    32     // can the weapon be fired (not reloading, have a clip, etc)