#include "ssf.h"
#include "vpm.h"
#include "engineAbstract.h"
#include "joint.h"
Go to the source code of this file.
Compounds | |
class | LightPuppet |
Puppet type for a light. More... | |
class | ModelPuppet |
Puppet that displays models. More... | |
class | PSystemPuppet |
Puppet that controls a dynamic particle system. More... | |
class | Puppet |
The central repository for virpet informaiton. More... | |
Defines | |
#define | ACTION_MAX 64 |
Maximum joints in a puppet. More... | |
#define | PUPPET_NUM 0x0001 |
ID code for type Puppet. More... | |
#define | MODELPUPPET_NUM 0x0002 |
ID code for type ModelPuppet. More... | |
#define | LIGHTPUPPET_NUM 0x0004 |
ID code for type LightPuppet. More... | |
#define | PSYSTEMPUPPET_NUM 0x0008 |
ID code for type PSystemPuppet. More... | |
#define | PUPPET_NULL -101 |
Returned if no puppet. More... | |
#define | PUPPET_ALREADY_EXISTS -102 |
Returned if a puppet already exists. More... | |
#define | NO_ACTION -103 |
Returned if no action. More... | |
Typedefs | |
typedef Puppet * | PuppetPtr |
Pointer to the Puppet class. | |
Functions | |
void | PuppetNodeControlFunc (HOBJECT hObj, HMODELNODE hNode, LTMatrix *pGlobalMat, void *pUserData) |
Gateway function that calls NodeControlFunc(). More... | |
void | StringToActionType (char *the_string, uint16 &joint_type, uint16 &action_type) |
void | StringToObjectType (char *the_string, uint16 &object_type) |
Maps a string to an object type. More... |
Puppet.h contains definitions for many classes, all derived from Puppet itself. The puppet class is basically a nexus for all possible information there could be about a controllable character, both within the engine and without. Different kinds of in-engine objects have different Puppet classes associated with them, though care should be taken to make sure the classes aren't game-specific.
|
Maximum joints in a puppet.
This is used to give a reasonable size to the action pointer-array in each puppet; in future versions the maximum should be dynamic and flexible, but that'd require a rescalable-array class that doesn't use STL, for sanity's sake. |
|
ID code for type LightPuppet.
A number that uniquely identifies the Light puppet class. Can be logially compounded with other puppet IDs. |
|
ID code for type ModelPuppet.
A number that uniquely identifies the Model puppet class. Can be logically compounded with other puppet IDs. |
|
Returned if no action.
This error code gets returned when a needed action doesn't exist, or isn't of the needed/correct type. Also used for non-fatal NULL pointer errors. |
|
ID code for type PSystemPuppet.
A number that uniquely identifies the PSystem puppet class. Can be logially compounded with other puppet IDs. |
|
Returned if a puppet already exists.
This error code gets returned when a puppet is already filling a needed space, and can't be overwritten. |
|
Returned if no puppet.
This error code gets returned when a needed puppet doesn't exist, or isn't of the needed/correct type. Also used for non-fatal NULL pointer errors. |
|
ID code for type Puppet.
A number that uniquely identifies the abstract puppet class. Can be logically compounded with other puppet IDs. |
|
Gateway function that calls NodeControlFunc().
|
|
Maps a string to an object type.
|