#include <MVPlaceObject.h>

Public Member Functions | |
| MVPlaceObject (const std::string &meshFilename, const std::string &textureFilename, const std::string &shaderFilename) | |
| Constructor with initial values. | |
| MVPlaceObject (const MVPlaceObject &source) | |
| Copy constructor. | |
| ~MVPlaceObject () | |
| Destructor. | |
| void | setX (int x) |
| Set new value for x-position. (should only be called by MVBoard). | |
| int | getX () |
| Retrieve value of x-position. | |
| void | setY (int y) |
| Set new value for y-position. (should only be called by MVBoard). | |
| int | getY () |
| Retrieve value of y-position. | |
| Mesh * | getMesh () |
| Retrieves a mesh. | |
| virtual void | renderGl () |
| Do the drawing stuff. | |
| virtual void | selectGl () |
| Do the selecting stuff. | |
| virtual string | toString () const |
| Returns a textual representation. | |
| virtual string | className () const |
| Returns the class name of the object. | |
| virtual enum classId | classId () const |
| Returns the class id of the object. | |
Protected Attributes | |
| int | x |
| x-position on the board. | |
| int | y |
| y-position on the board. | |
| Mesh | mesh |
| Mesh. | |
All objects on (or between) a place inherit from this super class.
| MVPlaceObject::MVPlaceObject | ( | const std::string & | meshFilename, | |
| const std::string & | textureFilename, | |||
| const std::string & | shaderFilename | |||
| ) |
| MVPlaceObject::MVPlaceObject | ( | const MVPlaceObject & | source | ) |
Copy constructor.
Copy constructor.
| MVPlaceObject::~MVPlaceObject | ( | ) |
Destructor.
Destructor.
| void MVPlaceObject::setX | ( | int | x | ) |
| int MVPlaceObject::getX | ( | ) |
Retrieve value of x-position.
| void MVPlaceObject::setY | ( | int | y | ) |
| int MVPlaceObject::getY | ( | ) |
Retrieve value of y-position.
| Mesh * MVPlaceObject::getMesh | ( | ) |
Retrieves a mesh.
| void MVPlaceObject::renderGl | ( | ) | [virtual] |
| void MVPlaceObject::selectGl | ( | ) | [virtual] |
Do the selecting stuff.
Do the selecting stuff.
| string MVPlaceObject::toString | ( | ) | const [virtual] |
Returns a textual representation.
Reimplemented from Object.
Reimplemented in MVBetweenPlacesObject, MVFirefly, MVFlame, MVFood, MVHole, MVMaterial, MVMaterialCrystal, MVMaterialGrass, MVMaterialWood, MVMovingOnPlaceObject, MVNest, MVOnPlaceObject, MVWall, MVWallSide, MVWater, and Wall.
| string MVPlaceObject::className | ( | ) | const [virtual] |
Returns the class name of the object.
Reimplemented from Object.
Reimplemented in MVBetweenPlacesObject, MVFirefly, MVFlame, MVFood, MVHole, MVMaterial, MVMaterialCrystal, MVMaterialGrass, MVMaterialWood, MVMovingOnPlaceObject, MVNest, MVOnPlaceObject, MVWall, MVWallSide, MVWater, and Wall.
| enum classId MVPlaceObject::classId | ( | ) | const [virtual] |
Returns the class id of the object.
Reimplemented from Object.
Reimplemented in MVBetweenPlacesObject, MVFirefly, MVFlame, MVFood, MVHole, MVMaterial, MVMaterialCrystal, MVMaterialGrass, MVMaterialWood, MVMovingOnPlaceObject, MVNest, MVOnPlaceObject, MVWall, MVWallSide, MVWater, and Wall.
int MVPlaceObject::x [protected] |
x-position on the board.
int MVPlaceObject::y [protected] |
y-position on the board.
Mesh MVPlaceObject::mesh [protected] |
Mesh.
1.5.6