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

Teddy::SpaceGame::ShipType Class Reference

Ship type. More...

#include <ShipType.h>

List of all members.

Public Methods

 ShipType (Mesh *mesh, float a, float ms, float pc, float rc, float mp, float mc)
 ShipType constructor. More...

Mesh * getMesh ()
 Get ship's Mesh. More...

float getAcceleration ()
 Get ship's maximum acceleration. More...

float getRollConst ()
 Get ship's roll constant. More...

float getPitchConst ()
 Get ship's pitch constant. More...

float getMaxRoll ()
 Get ship's maximum roll (delta). More...

float getMaxPitch ()
 Get ship's maximum pitch (delta). More...

float getMaxSpeed ()
 Get ship's maximum speed. More...


Protected Attributes

Mesh * mesh
float acceleration
float pitch_const
float roll_const
float max_pitch
float max_roll
float max_speed


Detailed Description

Ship type.

Todo:
weapons

Definition at line 46 of file ShipType.h.


Constructor & Destructor Documentation

Teddy::SpaceGame::ShipType::ShipType Mesh *    mesh,
float    a,
float    ms,
float    pc,
float    rc,
float    mp,
float    mr
 

ShipType constructor.

Definition at line 37 of file ShipType.cpp.

References acceleration, max_pitch, max_roll, max_speed, mesh, pitch_const, and roll_const.


Member Function Documentation

float Teddy::SpaceGame::ShipType::getAcceleration  
 

Get ship's maximum acceleration.

Definition at line 55 of file ShipType.cpp.

References acceleration.

float Teddy::SpaceGame::ShipType::getMaxPitch  
 

Get ship's maximum pitch (delta).

Definition at line 73 of file ShipType.cpp.

References max_pitch.

float Teddy::SpaceGame::ShipType::getMaxRoll  
 

Get ship's maximum roll (delta).

Definition at line 79 of file ShipType.cpp.

References max_roll.

float Teddy::SpaceGame::ShipType::getMaxSpeed  
 

Get ship's maximum speed.

Definition at line 85 of file ShipType.cpp.

References max_speed.

Mesh * Teddy::SpaceGame::ShipType::getMesh  
 

Get ship's Mesh.

Definition at line 49 of file ShipType.cpp.

References mesh.

float Teddy::SpaceGame::ShipType::getPitchConst  
 

Get ship's pitch constant.

Definition at line 61 of file ShipType.cpp.

References pitch_const.

float Teddy::SpaceGame::ShipType::getRollConst  
 

Get ship's roll constant.

Definition at line 67 of file ShipType.cpp.

References roll_const.


Member Data Documentation

float Teddy::SpaceGame::ShipType::acceleration [protected]
 

Definition at line 60 of file ShipType.h.

Referenced by getAcceleration(), and ShipType().

float Teddy::SpaceGame::ShipType::max_pitch [protected]
 

Definition at line 63 of file ShipType.h.

Referenced by getMaxPitch(), and ShipType().

float Teddy::SpaceGame::ShipType::max_roll [protected]
 

Definition at line 64 of file ShipType.h.

Referenced by getMaxRoll(), and ShipType().

float Teddy::SpaceGame::ShipType::max_speed [protected]
 

Definition at line 65 of file ShipType.h.

Referenced by getMaxSpeed(), and ShipType().

Mesh* Teddy::SpaceGame::ShipType::mesh [protected]
 

Definition at line 59 of file ShipType.h.

Referenced by getMesh(), and ShipType().

float Teddy::SpaceGame::ShipType::pitch_const [protected]
 

Definition at line 61 of file ShipType.h.

Referenced by getPitchConst(), and ShipType().

float Teddy::SpaceGame::ShipType::roll_const [protected]
 

Definition at line 62 of file ShipType.h.

Referenced by getRollConst(), and ShipType().


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