#include <ObjectModule.h>
Public Member Functions | |
CObject (CObjectModule *m, int id) | |
~CObject () | |
Destructor. | |
void | Serialize (CPacket *packet) |
Serializes this object into a packet. | |
void | Deserialize (CPacket *packet) |
Deserializes this object from packet. | |
int | GetType () |
Returns TYPE_COBJECT. | |
int | GetPhysicsMode () |
"physics" property getter. See OPSIMUS Scenario Scripting Guide for details. | |
void | SetPhysicsMode (int m) |
"physics" property setter. See OPSIMUS Scenario Scripting Guide for details. | |
Vector3 | GetBox () |
"box" property getter. See OPSIMUS Scenario Scripting Guide for details. | |
void | SetBox (Vector3 box) |
"box" property setter. See OPSIMUS Scenario Scripting Guide for details. | |
string | GetAnimation () |
"animation" property getter. See OPSIMUS Scenario Scripting Guide for details. | |
void | SetAnimation (string name) |
"animation" property setter. See OPSIMUS Scenario Scripting Guide for details. | |
void | SetALoop (bool tf) |
"aloop" property setter. See OPSIMUS Scenario Scripting Guide for details. | |
bool | GetALoop () |
"aloop" property getter. See OPSIMUS Scenario Scripting Guide for details. | |
void | SetOrder (float speed) |
"order" property setter. See OPSIMUS Scenario Scripting Guide for details. | |
void | Update (float seconds) |
Executes the CObject for a number of seconds. | |
void | SetFromString (const char *prop, const char *value) |
Derived from CCommon::SetFromString. | |
void | CloneInto (CCommon *c) |
Derived from CCommon::CloneInto. | |
float | GetDensity () |
"density" property getter. See OPSIMUS Scenario Scripting Guide for details. | |
float | GetMass () |
"mass" property getter. See OPSIMUS Scenario Scripting Guide for details. | |
void | SetDensity (float d) |
"density" property setter. See OPSIMUS Scenario Scripting Guide for details. | |
void | SetMass (float m) |
"mass" property setter. See OPSIMUS Scenario Scripting Guide for details. | |
void | Set (const char *prop, object value) |
Derived from CCommon::Set. | |
object | Get (const char *prop) |
Derived from CCommon::Get. |
CObject::CObject | ( | CObjectModule * | m, | |
int | id | |||
) |
Constructor.
m | The module that this instance is bound to. | |
id | The id of this instance. |