![]() |
VR-Forces Developer's Guide
|
The class that is the interface between the remote controller and the back-end.

Public Member Functions | |
| DtRemoteControlWeaponListRequestor (DtScenarioManager &=DtScenarioManager::NullManager()) | |
| virtual | ~DtRemoteControlWeaponListRequestor () override |
| virtual DtWeaponList | weaponSystemsForEntity (const DtUUID &) const |
| virtual bool | hasWeaponSystemsForEntity (const DtUUID &) const |
| virtual void | weaponSystems (std::vector< DtUUID > entities, DtWeaponList &weaponSystems) |
| virtual void | updateWeaponSystems (const DtUUID &, bool getResources=false) |
| virtual void | clearEntityEntry (const DtUUID &) |
Public Member Functions inherited from DtVrfSingleton | |
| DtVrfSingleton () | |
| virtual | ~DtVrfSingleton () |
| virtual std::string | className () const =0 |
| virtual void | cleanup () |
Static Public Member Functions | |
| static DtRemoteControlWeaponListRequestor & | Instance (DtScenarioManager &) |
Public Attributes | |
| boost::signals2::signal< void(const DtUUID &)> | signal_weaponListReceived |
Protected Types | |
| typedef std::map< DtUUID, DtWeaponList > | WeaponsListTable |
Protected Member Functions | |
| virtual void | sendMessage (const DtAdminMessage &msg) |
| virtual void | processWeaponListResponse (const DtVrfObjectMessage *msg) |
Static Protected Member Functions | |
| static void | weaponListResponseCallback (const DtVrfObjectMessage *msg, void *usr) |
Protected Attributes | |
| WeaponsListTable | myEntitiesTable |
| DtScenarioManager & | myScenarioManager |
|
protected |
| DtRemoteControlWeaponListRequestor::DtRemoteControlWeaponListRequestor | ( | DtScenarioManager & | = DtScenarioManager::NullManager() | ) |
|
overridevirtual |
|
virtual |
Returns the list of weapons found in myEntitiesTable for the given entity.
|
virtual |
Returns true if the given entity has an entry in myEntitiesTable.
|
virtual |
Puts the list of weapons common to all given entities into weaponSystems.
|
virtual |
Creates an admin message to request a weapon list from the given entity. If getResources is true, that field of the message is set, and the responder should return a list of resource names with the weapon name.
|
virtual |
Erase the entry in myEntitiesTable for the given entity. Call this when the weapon widget is initialized to avoid showing weapons left over from the last dialog with a weapon widget.
|
static |
|
protectedvirtual |
Reimplemented in makVrf::DtWeaponListRequestor.
|
staticprotected |
Add the weapons in the response message to myEntitiesTable. Note– entries are not replaced; new weapons/resources are added to the existing list for the entity. A dialog box must call clearEntityEntry during initialization to clear the table.
|
protectedvirtual |
| boost::signals2::signal<void (const DtUUID&)> DtRemoteControlWeaponListRequestor::signal_weaponListReceived |
|
protected |
|
protected |