VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes
DtRemoteControlWeaponListRequestor Class Reference

The class that is the interface between the remote controller and the back-end.

Inheritance diagram for DtRemoteControlWeaponListRequestor:
Inheritance graph
[legend]

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
 

Member Typedef Documentation

Constructor & Destructor Documentation

DtRemoteControlWeaponListRequestor::DtRemoteControlWeaponListRequestor ( DtScenarioManager &  = DtScenarioManager::NullManager())
virtual DtRemoteControlWeaponListRequestor::~DtRemoteControlWeaponListRequestor ( )
overridevirtual

Member Function Documentation

virtual DtWeaponList DtRemoteControlWeaponListRequestor::weaponSystemsForEntity ( const DtUUID &  ) const
virtual

Returns the list of weapons found in myEntitiesTable for the given entity.

virtual bool DtRemoteControlWeaponListRequestor::hasWeaponSystemsForEntity ( const DtUUID &  ) const
virtual

Returns true if the given entity has an entry in myEntitiesTable.

virtual void DtRemoteControlWeaponListRequestor::weaponSystems ( std::vector< DtUUID >  entities,
DtWeaponList &  weaponSystems 
)
virtual

Puts the list of weapons common to all given entities into weaponSystems.

virtual void DtRemoteControlWeaponListRequestor::updateWeaponSystems ( const DtUUID &  ,
bool  getResources = false 
)
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 void DtRemoteControlWeaponListRequestor::clearEntityEntry ( const DtUUID &  )
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 DtRemoteControlWeaponListRequestor& DtRemoteControlWeaponListRequestor::Instance ( DtScenarioManager &  )
static
virtual void DtRemoteControlWeaponListRequestor::sendMessage ( const DtAdminMessage &  msg)
protectedvirtual

Reimplemented in makVrf::DtWeaponListRequestor.

static void DtRemoteControlWeaponListRequestor::weaponListResponseCallback ( const DtVrfObjectMessage *  msg,
void *  usr 
)
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.

virtual void DtRemoteControlWeaponListRequestor::processWeaponListResponse ( const DtVrfObjectMessage *  msg)
protectedvirtual

Member Data Documentation

boost::signals2::signal<void (const DtUUID&)> DtRemoteControlWeaponListRequestor::signal_weaponListReceived
WeaponsListTable DtRemoteControlWeaponListRequestor::myEntitiesTable
protected
DtScenarioManager& DtRemoteControlWeaponListRequestor::myScenarioManager
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)