src/Projectile.hh
branchnew_graphics
changeset 412 721c60072091
parent 309 05a39422c81e
child 417 c503e0c6a740
equal deleted inserted replaced
411:106aaf6eadfe 412:721c60072091
     6 #include "GameState.hh"
     6 #include "GameState.hh"
     7 #include "Player.hh"
     7 #include "Player.hh"
     8 #include "PhysicsObject.hh"
     8 #include "PhysicsObject.hh"
     9 #include "Timer.hh"
     9 #include "Timer.hh"
    10 #include "Types.hh"
    10 #include "Types.hh"
    11 #include "GraphicsPointer.hh"
    11 
       
    12 #include "Graphics/Drawable.hh"
    12 
    13 
    13 /**
    14 /**
    14  * A projectile is a flying PhysicsObject, created by firing a player's weapon. It has an initial velocity, is
    15  * A projectile is a flying PhysicsObject, created by firing a player's weapon. It has an initial velocity, is
    15  * represented as a diamond-shape with the given "radius", can explode or bounce on collisions, expires at some point,
    16  * represented as a diamond-shape with the given "radius", can explode or bounce on collisions, expires at some point,
    16  * and can remove ground around it upon exploding.
    17  * and can remove ground around it upon exploding.
    47     virtual ~Projectile (void);
    48     virtual ~Projectile (void);
    48     
    49     
    49     /**
    50     /**
    50      * Draw
    51      * Draw
    51      */
    52      */
    52     virtual void draw (Graphics *g, PixelCoordinate camera) const;
    53     virtual void draw (graphics::Display &display, PixelCoordinate camera) const;
    53 
    54 
    54     /**
    55     /**
    55      * Get damage inflicted by this projectile.
    56      * Get damage inflicted by this projectile.
    56      *
    57      *
    57      * @return Damage inflicted by projectile.
    58      * @return Damage inflicted by projectile.