xoreos
0.0.5
|
A control tag is used for controlling stuff in the scene, like placing or removing objects, and stopping at every frame. More...
#include <gfxfile.h>
Classes | |
struct | ColorTransform |
A color tranformation of the specific object. More... | |
struct | DoAction |
A do action control tag. More... | |
struct | PlaceObject |
A place object control tag for placing objects. More... | |
Public Types | |
enum | ControlType { kShowFrame, kPlaceObject, kDoAction } |
The possible control types. More... | |
Public Member Functions | |
ControlType | getType () const |
Get the type of this control. More... | |
void | getPlaceObject (PlaceObject &placeObject) const |
Get the place object control. More... | |
void | getDoAction (DoAction &doAction) const |
Get do action control. More... | |
Static Public Member Functions | |
static GFXControl | createPlaceObject (PlaceObject) |
Create a place object control. More... | |
static GFXControl | createDoAction (DoAction) |
Create a do action control. More... | |
static GFXControl | createShowFrame () |
Create a show frame control. More... | |
Private Member Functions | |
GFXControl (ControlType type) | |
Private Attributes | |
boost::variant< PlaceObject, DoAction > | _value |
ControlType | _type |
A control tag is used for controlling stuff in the scene, like placing or removing objects, and stopping at every frame.
|
explicitprivate |
Definition at line 195 of file gfxfile.cpp.
Referenced by createShowFrame().
|
static |
Create a do action control.
Definition at line 169 of file gfxfile.cpp.
References _value, and kDoAction.
Referenced by Aurora::GFXFile::load(), and Aurora::GFXFile::readDefineSprite().
|
static |
Create a place object control.
Definition at line 161 of file gfxfile.cpp.
References _value, and kPlaceObject.
Referenced by Aurora::GFXFile::readPlaceObject().
|
static |
Create a show frame control.
Definition at line 177 of file gfxfile.cpp.
References GFXControl(), and kShowFrame.
Referenced by Aurora::GFXFile::load(), and Aurora::GFXFile::readDefineSprite().
void Aurora::GFXControl::getDoAction | ( | DoAction & | doAction | ) | const |
Get do action control.
Definition at line 188 of file gfxfile.cpp.
void Aurora::GFXControl::getPlaceObject | ( | PlaceObject & | placeObject | ) | const |
Get the place object control.
Definition at line 181 of file gfxfile.cpp.
References _type, _value, and kPlaceObject.
|
inline |
|
private |
Definition at line 338 of file gfxfile.h.
Referenced by getDoAction(), getPlaceObject(), and getType().
|
private |
Definition at line 336 of file gfxfile.h.
Referenced by createDoAction(), createPlaceObject(), getDoAction(), and getPlaceObject().