MercuryShape Class Reference

[actor] Sprite More...

#include <MercuryShapes.h>

Inheritance diagram for MercuryShape:

Inheritance graph
[legend]
Collaboration diagram for MercuryShape:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MercuryShape ()
virtual ~MercuryShape ()
bool LoadImage (const MString &Filename)
 Load an image onto the sprite.
MercuryMaterialGetTopMaterial ()
 Get the actual material's handle.
MercuryMeshGetTopMesh ()
 Get the actual mesh's handle.
void LoadModel ()
 [internal] load model (broken)
void MakeSphere (int Stacks=6, int Slices=12)
 Make the shape into a sphere.
void MakeCylinder (int Stacks=6, int Slices=12)
 Make the shape into a flat-top cylinder.
void MakeSprite (int Rows=1, int Cols=1)
 Make the shape into a sprite (two-part).
void MakeBox (bool bWholeMap=true)
 Make the shape into a box-like object.
bool SetFromINI (MercuryINI &InINI, const MString &section)
 [incomplete] Load the shape from an ini file
virtual bool Command (PStack &ret, const char *command, PStack &args)
 Handle a message, by default, it returns false, meaning the command was not handled.
virtual void EnumerateCommands (MVector< MString > &toAdd)
void CleanupMeshes ()
 Clear up the model mesh's.
 CLASS_RTTI (MercuryShape, MercuryModel)

Detailed Description

[actor] Sprite

Definition at line 8 of file MercuryShapes.h.


Constructor & Destructor Documentation

MercuryShape::MercuryShape (  ) 

Definition at line 10 of file MercuryShapes.cpp.

MercuryShape::~MercuryShape (  )  [virtual]

Definition at line 15 of file MercuryShapes.cpp.


Member Function Documentation

bool MercuryShape::LoadImage ( const MString Filename  ) 

Load an image onto the sprite.

Definition at line 19 of file MercuryShapes.cpp.

MercuryMaterial* MercuryShape::GetTopMaterial (  )  [inline]

Get the actual material's handle.

Definition at line 18 of file MercuryShapes.h.

MercuryMesh* MercuryShape::GetTopMesh (  )  [inline]

Get the actual mesh's handle.

Definition at line 21 of file MercuryShapes.h.

void MercuryShape::LoadModel (  )  [inline, virtual]

[internal] load model (broken)

Implements MercuryModel.

Definition at line 24 of file MercuryShapes.h.

void MercuryShape::MakeSphere ( int  Stacks = 6,
int  Slices = 12 
)

Make the shape into a sphere.

Definition at line 50 of file MercuryShapes.cpp.

void MercuryShape::MakeCylinder ( int  Stacks = 6,
int  Slices = 12 
)

Make the shape into a flat-top cylinder.

Definition at line 170 of file MercuryShapes.cpp.

void MercuryShape::MakeSprite ( int  Rows = 1,
int  Cols = 1 
)

Make the shape into a sprite (two-part).

Definition at line 105 of file MercuryShapes.cpp.

void MercuryShape::MakeBox ( bool  bWholeMap = true  ) 

Make the shape into a box-like object.

Definition at line 226 of file MercuryShapes.cpp.

bool MercuryShape::SetFromINI ( MercuryINI InINI,
const MString section 
)

[incomplete] Load the shape from an ini file

Definition at line 278 of file MercuryShapes.cpp.

bool MercuryShape::Command ( PStack ret,
const char *  command,
PStack args 
) [virtual]

Handle a message, by default, it returns false, meaning the command was not handled.

Reimplemented from MercuryModel.

Definition at line 320 of file MercuryShapes.cpp.

void MercuryShape::EnumerateCommands ( MVector< MString > &  toAdd  )  [virtual]

Reimplemented from MercuryModel.

Definition at line 367 of file MercuryShapes.cpp.

void MercuryShape::CleanupMeshes (  ) 

Clear up the model mesh's.

Definition at line 374 of file MercuryShapes.cpp.

MercuryShape::CLASS_RTTI ( MercuryShape  ,
MercuryModel   
)


The documentation for this class was generated from the following files:
Hosted by SourceForge.net Logo