A class for a GameActor object.
More...
#include <GameActor.h>
A class for a GameActor object.
- Author
- Jamie Slowgrove
GameActor::GameActor |
( |
Ogre::Vector3 |
position, |
|
|
Ogre::Vector3 |
orientation, |
|
|
Ogre::Real |
scale |
|
) |
| |
GameActor::~GameActor |
( |
| ) |
|
|
virtual |
A virtual destructor for the GameActor object.
void GameActor::changePosition |
( |
Ogre::Vector3 |
position | ) |
|
Changes the position of the GameActor.
- Parameters
-
Ogre::Vector3 | The new position of the GameActor. |
std::string GameActor::getActorID |
( |
| ) |
|
Getter # Gets the actorID of the GameActor.
- Returns
- std::string The actorID of the GameActor.
std::shared_ptr< Ogre::SceneNode > GameActor::getActorNode |
( |
| ) |
|
Getter # Gets the node of the GameActor.
- Returns
- std::shared_ptr<Ogre::SceneNode> A pointer to the node of the GameActor.
Ogre::Vector3 GameActor::getOrientation |
( |
| ) |
|
Getter # Gets the orientation of the GameActor.
- Returns
- Ogre::Vector3 The orientation of the GameActor.
Ogre::Vector3 GameActor::getPosition |
( |
| ) |
|
Getter # Gets the position of the GameActor.
- Returns
- Ogre::Vector3 The position of the GameActor.
Ogre::Real GameActor::getScale |
( |
| ) |
|
void GameActor::setOrientation |
( |
Ogre::Vector3 |
orientation | ) |
|
Setter # Sets the orientation of the GameActor.
- Parameters
-
Ogre::Vector3 | The new orientation of the GameActor. |
void GameActor::setPosition |
( |
Ogre::Vector3 |
position | ) |
|
Setter # Sets the position of the GameActor.
- Parameters
-
Ogre::Vector3 | The new position of the GameActor. |
void GameActor::setScale |
( |
Ogre::Real |
scale | ) |
|
Setter # Sets the scale of the GameActor.
- Parameters
-
void GameActor::setX |
( |
float |
x | ) |
|
Setter # Sets the x position of the GameActor.
- Parameters
-
void GameActor::setXOrientation |
( |
float |
xOrientation | ) |
|
Setter # Sets the x orientation of the GameActor.
- Parameters
-
void GameActor::setY |
( |
float |
y | ) |
|
Setter # Sets the y position of the GameActor.
- Parameters
-
void GameActor::setYOrientation |
( |
float |
yOrientation | ) |
|
Setter # Sets the y orientation of the GameActor.
- Parameters
-
void GameActor::setZ |
( |
float |
z | ) |
|
Setter # Sets the z position of the GameActor.
- Parameters
-
void GameActor::setZOrientation |
( |
float |
zOrientation | ) |
|
Setter # Sets the z orientation of the GameActor.
- Parameters
-
virtual void GameActor::updateActor |
( |
float |
dt | ) |
|
|
pure virtual |
unsigned int GameActor::actorID |
|
protected |
unsigned int GameActor::actorIDGenerator = 0 |
|
staticprotected |
A static member variable for the GameActor id generation
std::shared_ptr<Ogre::SceneNode> GameActor::gameActorNode |
|
protected |
Ogre::Vector3 GameActor::orientation |
|
protected |
Ogre::Vector3 GameActor::position |
|
protected |
Ogre::Real GameActor::scale |
|
protected |
The documentation for this class was generated from the following files: