#include <PlayerShip.h>
Inheritance diagram for Teddy::SpaceGame::PlayerShip:
Public Methods | |
PlayerShip (ShipType *ship_type, Root *root) | |
PlayerShip constructor. More... | |
void | init () |
Some initialization code... More... | |
void | setCollisionGroup (CollisionGroup *cg) |
virtual void | applyControls (float age) |
Apply Plaeyr Controls. More... | |
Protected Attributes | |
Clock * | clock |
Shortcut to system clock;. More... | |
Mesh * | bullet |
Bullet mesh model, temporary. More... | |
Light * | ply_light |
Light. More... | |
bool | wait_up |
True if we are waiting key release. More... | |
bool | touch |
True if player has pressed any key. More... |
Definition at line 52 of file PlayerShip.h.
|
PlayerShip constructor.
Definition at line 59 of file PlayerShip.cpp. References bullet, clock, init(), ply_light, Teddy::SpaceGame::Ship::prev_bullet_time, and Teddy::SpaceGame::Ship::root. |
|
Apply Plaeyr Controls.
Reimplemented from Teddy::SpaceGame::Ship. Definition at line 80 of file PlayerShip.cpp. References BULLET_RATE, ply_light, Teddy::SpaceGame::Ship::prev_bullet_time, and Teddy::SpaceGame::Ship::root. |
|
Some initialization code...
Definition at line 73 of file PlayerShip.cpp. References touch, and wait_up. Referenced by PlayerShip(). |
|
|
|
Bullet mesh model, temporary.
Definition at line 67 of file PlayerShip.h. Referenced by PlayerShip(). |
|
Shortcut to system clock;.
Definition at line 66 of file PlayerShip.h. Referenced by PlayerShip(). |
|
Light.
Definition at line 68 of file PlayerShip.h. Referenced by applyControls(), and PlayerShip(). |
|
True if player has pressed any key.
Definition at line 70 of file PlayerShip.h. Referenced by init(). |
|
True if we are waiting key release.
Definition at line 69 of file PlayerShip.h. Referenced by init(). |