#include <MVMaterial.h>

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. | |
Class for materials which can be placed on objects and carried around by the firefly.
| 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.
| 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.
Reimplemented from MVOnPlaceObject.
Reimplemented in MVMaterialCrystal, MVMaterialGrass, and MVMaterialWood.
| string MVMaterial::className | ( | ) | const [virtual] |
Returns the class name of the object.
Reimplemented from MVOnPlaceObject.
Reimplemented in MVMaterialCrystal, MVMaterialGrass, and MVMaterialWood.
| enum classId MVMaterial::classId | ( | ) | const [virtual] |
Returns the class id of the object.
Reimplemented from MVOnPlaceObject.
Reimplemented in MVMaterialCrystal, MVMaterialGrass, and MVMaterialWood.
int MVMaterial::score [private] |
Score of the material.
int MVMaterial::weight [private] |
Weight of the material.
Texture MVMaterial::icon [protected] |
Material icon for HUD.
1.5.6