srAlmende::RobotSpace3D Class Reference

#include <robotSpaced.h>

Collaboration diagram for srAlmende::RobotSpace3D:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 RobotSpace3D (dtGame::GameActorProxy &proxy)
 Constructs the robot actor.
virtual void TickLocal (const dtGame::Message &tickMessage)
virtual void ProcessMessage (const dtGame::Message &message)
virtual void OnEnteredWorld ()
 Initialise our robot then enter the world.
void SetSpace3D (Space3D *space)
Space3DGetSpace3D ()

Static Public Attributes

static const std::string EVENT_HANDLER_NAME
 Constant identifier for our game event handler method.
static const std::string NAME
 The following string name needs to be used in the ***.xml file.

Protected Member Functions

virtual ~RobotSpace3D ()
 Destructor.
void Initialize ()

Detailed Description

This class represents a robot that contains a Space3D inside.

Definition at line 40 of file robotSpaced.h.


Constructor & Destructor Documentation

RobotSpace3D::RobotSpace3D ( dtGame::GameActorProxy &  proxy  ) 

Constructs the robot actor.

Creates a instance of this specific robot.

Remarks:
It is unclear to me why deltaTime can be set per robot
Parameters:
proxy 
Returns:

Definition at line 33 of file robotSpaced.cpp.

References NAME.


Member Function Documentation

Space3D * RobotSpace3D::GetSpace3D (  ) 

Get Space3D.

Definition at line 368 of file robotSpaced.cpp.

void RobotSpace3D::Initialize (  )  [protected]

The RobotSpace3D contains two main bodies and a hinge between them, 4 wheels that simulate the screw drive,

Definition at line 48 of file robotSpaced.cpp.

References srAlmende::BodyFactory::createBody(), and srAlmende::Space3D::Init().

Referenced by OnEnteredWorld().

Here is the call graph for this function:

void RobotSpace3D::OnEnteredWorld (  )  [virtual]

Initialise our robot then enter the world.

Called when the actor has been added to dtGame::GameManager.

Definition at line 358 of file robotSpaced.cpp.

References Initialize().

Here is the call graph for this function:

void RobotSpace3D::ProcessMessage ( const dtGame::Message &  message  )  [virtual]

The routine processes a dtGame::Message.

This is the interesting routine (not TickLocal).

Parameters:
message 

Definition at line 282 of file robotSpaced.cpp.

void RobotSpace3D::SetSpace3D ( Space3D space  ) 

Set Space3D.

Definition at line 364 of file robotSpaced.cpp.

void RobotSpace3D::TickLocal ( const dtGame::Message &  tickMessage  )  [virtual]

This method is an invokable called when an object is local and receives a tick.

Parameters:
tickMessage A message containing tick related information.

In TickLocal nothing happens except for setting the local field deltaSimTime, an update of the position and rotation fields, and a call to the super routine RobotActorBase::TickLocal.

Parameters:
tickMessage The Tick message.

Definition at line 264 of file robotSpaced.cpp.

References srAlmende::Space3D::Tick().

Here is the call graph for this function:


Member Data Documentation

const std::string RobotSpace3D::EVENT_HANDLER_NAME [static]

Constant identifier for our game event handler method.

The type of events that are received.

Definition at line 43 of file robotSpaced.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations

Generated on Thu Feb 4 16:32:08 2010 for Delta3D Plugin by  doxygen 1.6.1