Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

Projectile Class Reference

#include <Projectile.h>

List of all members.

Public Member Functions

 Projectile ()
virtual ~Projectile ()
void create (Vec3 p, Vec3 v, float s=1.0f)
void update (float dTime)
Vec3 getPos ()
float getStrength ()
bool isAlive ()
void die ()
void setPlayerID (int id)
int getPlayerID ()

Private Attributes

Vec3 m_position
Vec3 m_prevPosition
Vec3 m_velocity
float m_strength
bool alive
int playerID


Detailed Description

Projectile.h

Author: Petter Alstermark, petter@alstermark.com

Definition at line 13 of file Projectile.h.


Constructor & Destructor Documentation

Projectile::Projectile  )  [inline]
 

Definition at line 15 of file Projectile.h.

virtual Projectile::~Projectile  )  [inline, virtual]
 

Definition at line 16 of file Projectile.h.


Member Function Documentation

void Projectile::create Vec3  p,
Vec3  v,
float  s = 1.0f
[inline]
 

Definition at line 40 of file Projectile.h.

References alive, m_position, m_strength, and m_velocity.

Referenced by Play::fireProjectile().

void Projectile::die  )  [inline]
 

Definition at line 24 of file Projectile.h.

References alive.

Referenced by Play::drawProjectiles().

int Projectile::getPlayerID  )  [inline]
 

Definition at line 26 of file Projectile.h.

Vec3 Projectile::getPos  )  [inline]
 

Definition at line 21 of file Projectile.h.

References m_position.

Referenced by Play::drawProjectiles().

float Projectile::getStrength  )  [inline]
 

Definition at line 22 of file Projectile.h.

References m_strength.

bool Projectile::isAlive  )  [inline]
 

Definition at line 23 of file Projectile.h.

References alive.

void Projectile::setPlayerID int  id  )  [inline]
 

Definition at line 25 of file Projectile.h.

References playerID.

Referenced by Play::fireProjectile().

void Projectile::update float  dTime  )  [inline]
 

Definition at line 50 of file Projectile.h.

References m_position, m_prevPosition, and m_velocity.

Referenced by Play::drawProjectiles().


Member Data Documentation

bool Projectile::alive [private]
 

Definition at line 33 of file Projectile.h.

Referenced by create(), die(), and isAlive().

Vec3 Projectile::m_position [private]
 

Definition at line 26 of file Projectile.h.

Referenced by create(), getPos(), and update().

Vec3 Projectile::m_prevPosition [private]
 

Definition at line 30 of file Projectile.h.

Referenced by update().

float Projectile::m_strength [private]
 

Definition at line 32 of file Projectile.h.

Referenced by create(), and getStrength().

Vec3 Projectile::m_velocity [private]
 

Definition at line 31 of file Projectile.h.

Referenced by create(), and update().

int Projectile::playerID [private]
 

Definition at line 34 of file Projectile.h.

Referenced by setPlayerID().


Generated on Sun Jun 5 15:50:54 2005 for Defacto by  doxygen 1.4.3