#include <Granade.h>
Public Member Functions | |
Granade () | |
virtual | ~Granade () |
void | create (Vec3 p, Vec3 v, float l, float s=1.0f) |
bool | update (float dTime, ObjLevel *lvl) |
Vec3 | getPos () |
float | getStrength () |
bool | isAlive () |
void | setPlayerID (int id) |
int | getPlayerID () |
Protected Attributes | |
Vec3 | m_position |
Vec3 | m_prevPosition |
Vec3 | m_velocity |
float | m_life |
float | m_strength |
int | playerID |
Author: Petter Alstermark, petter@alstermark.com
Definition at line 14 of file Granade.h.
|
Author: Petter Alstermark, petter@alstermark.com Definition at line 12 of file Granade.cpp. References m_life. |
|
Definition at line 19 of file Granade.cpp. |
|
Definition at line 25 of file Granade.cpp. References m_life, m_position, m_strength, and m_velocity. Referenced by Play::throwGrenade(). |
|
|
|
Definition at line 22 of file Granade.h. References m_position. Referenced by Play::drawGrenades(). |
|
Definition at line 23 of file Granade.h. References m_strength. |
|
Definition at line 24 of file Granade.h. References m_life. |
|
Definition at line 25 of file Granade.h. References playerID. Referenced by Play::throwGrenade(). |
|
Definition at line 36 of file Granade.cpp. References ObjLevel::collission(), GRAVITY, ObjLevel::isWall(), ObjLevel::isWater(), m_life, m_position, m_prevPosition, m_velocity, Vec3::x, Vec3::y, and Vec3::z. Here is the call graph for this function: |
|
|
|
|
|
Definition at line 30 of file Granade.h. Referenced by update(). |
|
Definition at line 33 of file Granade.h. Referenced by create(), and getStrength(). |
|
|
|
Definition at line 34 of file Granade.h. Referenced by setPlayerID(). |