#include <Projectile.h>
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 |
Author: Petter Alstermark, petter@alstermark.com
Definition at line 13 of file Projectile.h.
|
Definition at line 15 of file Projectile.h. |
|
Definition at line 16 of file Projectile.h. |
|
Definition at line 40 of file Projectile.h. References alive, m_position, m_strength, and m_velocity. Referenced by Play::fireProjectile(). |
|
Definition at line 24 of file Projectile.h. References alive. Referenced by Play::drawProjectiles(). |
|
Definition at line 26 of file Projectile.h. |
|
Definition at line 21 of file Projectile.h. References m_position. Referenced by Play::drawProjectiles(). |
|
Definition at line 22 of file Projectile.h. References m_strength. |
|
Definition at line 23 of file Projectile.h. References alive. |
|
Definition at line 25 of file Projectile.h. References playerID. Referenced by Play::fireProjectile(). |
|
Definition at line 50 of file Projectile.h. References m_position, m_prevPosition, and m_velocity. Referenced by Play::drawProjectiles(). |
|
Definition at line 33 of file Projectile.h. |
|
Definition at line 26 of file Projectile.h. |
|
Definition at line 30 of file Projectile.h. Referenced by update(). |
|
Definition at line 32 of file Projectile.h. Referenced by create(), and getStrength(). |
|
Definition at line 31 of file Projectile.h. |
|
Definition at line 34 of file Projectile.h. Referenced by setPlayerID(). |