![]() |
VR-Forces 5.0.1 Developer's Guide
|
Lua object class which represents a query for embarkation slot info.

Public Member Functions | |
| DtLuaWeaponListQueryJob () | |
| ~DtLuaWeaponListQueryJob () | |
| luabind::object | getObject (lua_State *L, int &index, std::string &message) |
| luabind::object | getDebugObject (lua_State *L) |
| virtual void | cancel (lua_State *L) |
| virtual void | processResponse (const DtVrfObjectMessage *msg) |
| DtString | serialize () |
| bool | deserialize (const DtString &) |
| DtString | objectType () const |
| boost::shared_ptr < DtLuaWeaponListQueryJob > | shared_from_this () |
| boost::shared_ptr< const DtLuaWeaponListQueryJob > | shared_from_this () const |
Public Member Functions inherited from DtLuaAsyncJob | |
| void | init (void *userData) |
Public Member Functions inherited from DtAsciiSerializable | |
| DtAsciiSerializable () | |
| DtAsciiSerializable (const DtAsciiSerializable &orig) | |
| virtual | ~DtAsciiSerializable () |
| virtual std::string | objectTypeC () const |
Static Public Member Functions | |
| static boost::shared_ptr < DtLuaWeaponListQueryJob > | Make (DtSimulationServices *mgr, DtLocalObject *pLocalObjectMakingQuery, DtSimObjectReference objectToBeQueried) |
| static void | responseCallback (const DtVrfObjectMessage *msg, void *usr) |
| static DtAsciiSerializable * | creator () |
Protected Types | |
| typedef DtMutex | Mutex |
Protected Member Functions | |
| DtLuaWeaponListQueryJob (DtSimulationServices *mgr, DtLocalObject *pLocalObjectMakingQuery, DtSimObjectReference objectToBeQueried) | |
| virtual void | start (DtLocalObject &localObjectExecuting) |
| virtual void | taskComplete () |
Protected Member Functions inherited from DtLuaAsyncJob | |
| DtLuaAsyncJob () | |
| DtLuaAsyncJob (DtSimulationServices *) | |
Protected Attributes | |
| DtLocalObject * | pMyLocalObject |
| DtUUID | myLocalObjectUUID |
| DtSimObjectReference | myObjectBeingQueried |
| bool | myRequestSent |
| bool | myGotResponse |
| DtWeaponList | myWeaponList |
| DtTime | myTimeToGiveUp |
| Mutex | myMutex |
Protected Attributes inherited from DtLuaAsyncJob | |
| DtSimulationServices * | mySimulationServices |
|
protected |
| DtLuaWeaponListQueryJob::DtLuaWeaponListQueryJob | ( | ) |
For creating when deserializing.
| DtLuaWeaponListQueryJob::~DtLuaWeaponListQueryJob | ( | ) |
DTOR.
|
protected |
For creating from lua call.
|
static |
|
virtual |
Retrieve value Returns index 1 if job complete, -1 if job error, 0 if job running Index will return 9 if the job needs to be recreated because it was interrupted by serialization and deserialization and is incomplete. Returns { {"<weaponName>", "<weaponType>", { "<resourceName>","<resourceName>"... }, { "<weaponName>","<weaponType>",{"<resourceName>","<resourceName>"...}, ... }.
Implements DtLuaAsyncJob.
|
inlinevirtual |
Retrieve debug data, if available. Default return value is an empty table.
Implements DtLuaAsyncJob.
|
inlinevirtual |
Currently a no-op.
Implements DtLuaAsyncJob.
|
static |
Processes the query response.
|
virtual |
|
static |
DtAsciiSerializable functions.
|
virtual |
The following characters are reserved and cannot be used in serialization: '|', ':'.
Implements DtAsciiSerializable.
This function should take the string that was serialized via serialize() and fill this object with the correct data.
Implements DtAsciiSerializable.
|
virtual |
Should return the string name of this object. The object name should not be part of the serialization unless you want it to be, but you should take it into account when implementing both functions.
Implements DtAsciiSerializable.
| boost::shared_ptr<DtLuaWeaponListQueryJob> DtLuaWeaponListQueryJob::shared_from_this | ( | ) |
| boost::shared_ptr<const DtLuaWeaponListQueryJob> DtLuaWeaponListQueryJob::shared_from_this | ( | ) | const |
|
protectedvirtual |
|
protectedvirtual |
Called by task object whenever it is done.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
mutableprotected |