MVPlace Class Reference

A place on the Firefly board. More...

#include <MVPlace.h>

Inheritance diagram for MVPlace:

Object3d ViewObject Object

List of all members.

Public Member Functions

 MVPlace ()
 standard constructor
 MVPlace (const MVPlace &source)
 copy constructor
 ~MVPlace ()
 destructor
void addOnPlaceObject (MVOnPlaceObject *object)
 Add an object onto this place.
void removeOnPlaceObject (MVPlaceObject *object)
 Remove an object from this place.
std::vector< MVOnPlaceObject * > * getOnPlaceObjects ()
 Returns a pointer to the list of on Place Objects of this place.
void renderGl ()
 Do the drawing stuff.
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.

Private Attributes

std::vector< MVOnPlaceObject * > onPlaceObjects
 Vector of OnPlaceObject's on this place.
Mesh placeMesh
 The mesh of the tile, that represents this place.


Detailed Description

A place on the Firefly board.

Model of a place on the Firefly board. It has a position and can contain several OnPlaceObject's.


Constructor & Destructor Documentation

MVPlace::MVPlace (  ) 

standard constructor

MVPlace::MVPlace ( const MVPlace source  ) 

copy constructor

MVPlace::~MVPlace (  ) 

destructor


Member Function Documentation

void MVPlace::addOnPlaceObject ( MVOnPlaceObject object  ) 

Add an object onto this place.

Add an object onto this place.

Parameters:
object Pointer to the object, instance of MVOnPlaceObject, which should be added.

void MVPlace::removeOnPlaceObject ( MVPlaceObject object  ) 

Remove an object from this place.

Remove an object from this place.

Parameters:
object Pointer to the object, instance of MVOnPlaceObject, which should be removed.

std::vector< MVOnPlaceObject * > * MVPlace::getOnPlaceObjects (  ) 

Returns a pointer to the list of on Place Objects of this place.

Returns a pointer to the List of on Place Objects of this place.

void MVPlace::renderGl (  )  [virtual]

Do the drawing stuff.

Do the drawing stuff.

Implements Object3d.

void MVPlace::selectGl (  )  [virtual]

Do the selecting stuff.

Do the selecting stuff.

Implements Object3d.

string MVPlace::toString (  )  const [virtual]

Returns a textual representation.

Returns:
a string descriping the run-time object

Reimplemented from Object3d.

string MVPlace::className (  )  const [virtual]

Returns the class name of the object.

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

Reimplemented from Object3d.

enum classId MVPlace::classId (  )  const [virtual]

Returns the class id of the object.

Returns:
an id of the object's class

Reimplemented from Object3d.


Member Data Documentation

std::vector<MVOnPlaceObject *> MVPlace::onPlaceObjects [private]

Vector of OnPlaceObject's on this place.

The mesh of the tile, that represents this place.


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