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

Teddy::SpaceGame::SimulatedInstance Class Reference

Simulated ModelInstance. More...

#include <SimulatedInstance.h>

Inheritance diagram for Teddy::SpaceGame::SimulatedInstance:

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

Collaboration graph
[legend]
List of all members.

Public Methods

 SimulatedInstance (const char *name, Mesh *mesh=NULL)
 Constructor. More...

virtual ~SimulatedInstance ()
 Destructor. More...

virtual void tick ()
 Simulate one tick. More...


Public Attributes

DoubleVector tick_translation
 direction, speed. More...

DoubleVector tick_translation_delta
 acceleration. More...

Quaternion tick_rotation
 world rotation. More...

Quaternion tick_rotation_delta
 world angular acceleration. More...

Vector tick_local_rotation
 local rotation. More...

Vector tick_local_rotation_delta
 locla angular acceleration. More...


Detailed Description

Simulated ModelInstance.

Definition at line 41 of file SimulatedInstance.h.


Constructor & Destructor Documentation

Teddy::SpaceGame::SimulatedInstance::SimulatedInstance const char *    name,
Mesh *    mesh = NULL
 

Constructor.

Definition at line 33 of file SimulatedInstance.cpp.

Referenced by Teddy::SpaceGame::Ship::trackTarget().

Teddy::SpaceGame::SimulatedInstance::~SimulatedInstance   [virtual]
 

Destructor.

Definition at line 47 of file SimulatedInstance.cpp.


Member Function Documentation

void Teddy::SpaceGame::SimulatedInstance::tick   [virtual]
 

Simulate one tick.

Reimplemented from Teddy::SpaceGame::Simulated.

Reimplemented in Teddy::SpaceGame::CollisionInstance, and Teddy::SpaceGame::Ship.

Definition at line 51 of file SimulatedInstance.cpp.

References Teddy::SpaceGame::Simulated::lock(), tick_local_rotation, tick_local_rotation_delta, tick_rotation, tick_rotation_delta, tick_translation, tick_translation_delta, and Teddy::SpaceGame::Simulated::unlock().


Member Data Documentation

Vector Teddy::SpaceGame::SimulatedInstance::tick_local_rotation
 

local rotation.

Definition at line 55 of file SimulatedInstance.h.

Referenced by tick(), and Teddy::SpaceGame::CollisionInstance::tick().

Vector Teddy::SpaceGame::SimulatedInstance::tick_local_rotation_delta
 

locla angular acceleration.

Definition at line 56 of file SimulatedInstance.h.

Referenced by tick(), and Teddy::SpaceGame::CollisionInstance::tick().

Quaternion Teddy::SpaceGame::SimulatedInstance::tick_rotation
 

world rotation.

Definition at line 53 of file SimulatedInstance.h.

Referenced by tick(), and Teddy::SpaceGame::CollisionInstance::tick().

Quaternion Teddy::SpaceGame::SimulatedInstance::tick_rotation_delta
 

world angular acceleration.

Definition at line 54 of file SimulatedInstance.h.

Referenced by tick(), and Teddy::SpaceGame::CollisionInstance::tick().

DoubleVector Teddy::SpaceGame::SimulatedInstance::tick_translation
 

direction, speed.

Definition at line 51 of file SimulatedInstance.h.

Referenced by Teddy::SpaceGame::CollisionInstance::applyCollision(), Teddy::SpaceGame::Ship::applyControls(), Teddy::SpaceGame::Ship::collide(), tick(), and Teddy::SpaceGame::CollisionInstance::tick().

DoubleVector Teddy::SpaceGame::SimulatedInstance::tick_translation_delta
 

acceleration.

Definition at line 52 of file SimulatedInstance.h.

Referenced by tick(), and Teddy::SpaceGame::CollisionInstance::tick().


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