MVMaterial Class Reference

Class for materials. More...

#include <MVMaterial.h>

Inheritance diagram for MVMaterial:

MVOnPlaceObject MVPlaceObject Object MVMaterialCrystal MVMaterialGrass MVMaterialWood

List of all members.

Public Member Functions

 MVMaterial (const std::string &meshFilename, const std::string &textureFilename, const std::string &shaderFilename, int score, int weight)
 Constructor with initial values.
int getScore ()
 Retrieve score value.
int getWeight ()
 Retrieve weight.
void bindIconTexture ()
 Binds material icon as Texture.
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

Texture icon
 Material icon for HUD.

Private Attributes

int score
 Score of the material.
int weight
 Weight of the material.


Detailed Description

Class for materials.

Class for materials which can be placed on objects and carried around by the firefly.


Constructor & Destructor Documentation

MVMaterial::MVMaterial ( const std::string &  meshFilename,
const std::string &  textureFilename,
const std::string &  shaderFilename,
int  score,
int  weight 
)

Constructor with initial values.

Constructor with initial values.


Member Function Documentation

int MVMaterial::getScore (  ) 

Retrieve score value.

Retrieve score value.

int MVMaterial::getWeight (  ) 

Retrieve weight.

Retrieve weight.

void MVMaterial::bindIconTexture (  ) 

Binds material icon as Texture.

Binds the OpenGL texture of the material's icon

string MVMaterial::toString (  )  const [virtual]

Returns a textual representation.

Returns:
a string descriping the run-time object

Reimplemented from MVOnPlaceObject.

Reimplemented in MVMaterialCrystal, MVMaterialGrass, and MVMaterialWood.

string MVMaterial::className (  )  const [virtual]

Returns the class name of the object.

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

Reimplemented from MVOnPlaceObject.

Reimplemented in MVMaterialCrystal, MVMaterialGrass, and MVMaterialWood.

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

Returns the class id of the object.

Returns:
an id of the object's class

Reimplemented from MVOnPlaceObject.

Reimplemented in MVMaterialCrystal, MVMaterialGrass, and MVMaterialWood.


Member Data Documentation

int MVMaterial::score [private]

Score of the material.

int MVMaterial::weight [private]

Weight of the material.

Material icon for HUD.


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