#include <robotSpaced.h>

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) |
| Space3D * | GetSpace3D () |
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 () |
This class represents a robot that contains a Space3D inside.
Definition at line 40 of file robotSpaced.h.
| RobotSpace3D::RobotSpace3D | ( | dtGame::GameActorProxy & | proxy | ) |
Constructs the robot actor.
Creates a instance of this specific robot.
deltaTime can be set per robot | proxy |
Definition at line 33 of file robotSpaced.cpp.
References NAME.
| 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().

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

| void RobotSpace3D::ProcessMessage | ( | const dtGame::Message & | message | ) | [virtual] |
The routine processes a dtGame::Message.
This is the interesting routine (not TickLocal).
| 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.
| 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.
| tickMessage | The Tick message. |
Definition at line 264 of file robotSpaced.cpp.
References srAlmende::Space3D::Tick().

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