MVPlaceObject Class Reference

Superclass of all PlaceObject's. More...

#include <MVPlaceObject.h>

Inheritance diagram for MVPlaceObject:

Object MVBetweenPlacesObject MVOnPlaceObject MVWall MVFlame MVFood MVHole MVMaterial MVMovingOnPlaceObject MVNest MVWallSide MVWater Wall

List of all members.

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


Detailed Description

Superclass of all PlaceObject's.

All objects on (or between) a place inherit from this super class.


Constructor & Destructor Documentation

MVPlaceObject::MVPlaceObject ( const std::string &  meshFilename,
const std::string &  textureFilename,
const std::string &  shaderFilename 
)

Constructor with initial values.

Constructor with initial values for Mesh and Texture.

Parameters:
meshFilename Filename of the file containing the mesh to use.
textureFilename Filename of the file containing the texture to use.

MVPlaceObject::MVPlaceObject ( const MVPlaceObject source  ) 

Copy constructor.

Copy constructor.

MVPlaceObject::~MVPlaceObject (  ) 

Destructor.

Destructor.


Member Function Documentation

void MVPlaceObject::setX ( int  x  ) 

Set new value for x-position. (should only be called by MVBoard).

Reimplemented in MVFirefly.

int MVPlaceObject::getX (  ) 

Retrieve value of x-position.

void MVPlaceObject::setY ( int  y  ) 

Set new value for y-position. (should only be called by MVBoard).

Reimplemented in MVFirefly.

int MVPlaceObject::getY (  ) 

Retrieve value of y-position.

Mesh * MVPlaceObject::getMesh (  ) 

Retrieves a mesh.

void MVPlaceObject::renderGl (  )  [virtual]

Do the drawing stuff.

Do the drawing stuff.

Reimplemented in MVFirefly, and MVFlame.

void MVPlaceObject::selectGl (  )  [virtual]

Do the selecting stuff.

Do the selecting stuff.

string MVPlaceObject::toString (  )  const [virtual]

Returns a textual representation.

Returns:
a string descriping the run-time object

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.

Returns:
a string with the name of the object's class

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.

Returns:
an id of the object's class

Reimplemented from Object.

Reimplemented in MVBetweenPlacesObject, MVFirefly, MVFlame, MVFood, MVHole, MVMaterial, MVMaterialCrystal, MVMaterialGrass, MVMaterialWood, MVMovingOnPlaceObject, MVNest, MVOnPlaceObject, MVWall, MVWallSide, MVWater, and Wall.


Member Data Documentation

int MVPlaceObject::x [protected]

x-position on the board.

int MVPlaceObject::y [protected]

y-position on the board.

Mesh.


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

Generated on Mon Jul 7 13:30:34 2008 for Firefly by  doxygen 1.5.6