src/Weapon.hh
changeset 223 2fcaf54ed37b
parent 222 293ddf4c067d
child 233 ff4ecea83cf5
equal deleted inserted replaced
222:293ddf4c067d 223:2fcaf54ed37b
    32     void tickReload (TimeMS dt);
    32     void tickReload (TimeMS dt);
    33     
    33     
    34     // can the weapon be fired (not reloading, have a clip, etc)
    34     // can the weapon be fired (not reloading, have a clip, etc)
    35     bool canShoot (void);
    35     bool canShoot (void);
    36     
    36     
    37     // get the weapon projectile velocity
    37     // get weapon parameters
    38     float getVelocity (void) { return velocity; }
    38     float getVelocity (void) { return velocity; }
    39 
    39     float getExplosionRadius (void) { return explosionRadius; }
    40     /*
    40     TickCount getExpireTicks (void) { return age; }
    41      * Fire the Weapon! Position and velocity are the initial position and velocity for the resulting projectile
    41     
    42      */
    42     // start reloading
    43     Projectile* shoot (Vector position, Vector velocity);
    43     void reload (void);
    44 };
    44 };
    45 
    45 
    46 #endif
    46 #endif