Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Teddy::SpaceGame::PlayerShip Class Reference

Player controlled ship. More...

#include <PlayerShip.h>

Inheritance diagram for Teddy::SpaceGame::PlayerShip:

Inheritance graph
[legend]
Collaboration diagram for Teddy::SpaceGame::PlayerShip:

Collaboration graph
[legend]
List of all members.

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...


Detailed Description

Player controlled ship.

Definition at line 52 of file PlayerShip.h.


Constructor & Destructor Documentation

Teddy::SpaceGame::PlayerShip::PlayerShip ShipType   ship_type,
Root   root
 

PlayerShip constructor.

Parameters:
root  Link to program root
ship_type  Type of ship for player

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.


Member Function Documentation

void Teddy::SpaceGame::PlayerShip::applyControls float    age [virtual]
 

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.

void Teddy::SpaceGame::PlayerShip::init  
 

Some initialization code...

Definition at line 73 of file PlayerShip.cpp.

References touch, and wait_up.

Referenced by PlayerShip().

void Teddy::SpaceGame::PlayerShip::setCollisionGroup CollisionGroup   cg
 


Member Data Documentation

Mesh* Teddy::SpaceGame::PlayerShip::bullet [protected]
 

Bullet mesh model, temporary.

Definition at line 67 of file PlayerShip.h.

Referenced by PlayerShip().

Clock* Teddy::SpaceGame::PlayerShip::clock [protected]
 

Shortcut to system clock;.

Definition at line 66 of file PlayerShip.h.

Referenced by PlayerShip().

Light* Teddy::SpaceGame::PlayerShip::ply_light [protected]
 

Light.

Definition at line 68 of file PlayerShip.h.

Referenced by applyControls(), and PlayerShip().

bool Teddy::SpaceGame::PlayerShip::touch [protected]
 

True if player has pressed any key.

Definition at line 70 of file PlayerShip.h.

Referenced by init().

bool Teddy::SpaceGame::PlayerShip::wait_up [protected]
 

True if we are waiting key release.

Definition at line 69 of file PlayerShip.h.

Referenced by init().


The documentation for this class was generated from the following files: