VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
weaponListRequestor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
14 
15 #include <vrfGuiCore/vrfGuiCore.h>
18 #include <vrfutil/rwUUID.h>
19 
22 
23 
24 
25 #include <vector>
26 
27 namespace makVrv
28 {
29  class DtDe;
30  class DtSimObjectEntry;
31 }
32 
33 class DtVrfObjectMessage;
34 
35 namespace makVrf
36 {
39  {
40  public:
42  virtual ~DtWeaponListRequestor() override;
43 
44  static DtWeaponListRequestor& instance(makVrv::DtDe& de);
45 
48  virtual DtWeaponList weaponSystemsForEntity(const DtUUID&) const;
49 
51  virtual bool hasWeaponSystemsForEntity(const DtUUID&) const;
52 
54  virtual void weaponSystems(std::vector<DtUUID> entities, DtWeaponList& weaponSystems);
55 
59  virtual void updateWeaponSystems(const DtUUID&, bool getResources=false);
60 
64  virtual void clearEntityEntry(const DtUUID&);
65 
66  boost::signals2::signal<void (const DtUUID&)> signal_weaponListReceived;
67 
68  protected:
69 
70  virtual void slot_onSimDataRemoved(DtSimObjectReference);
71 
76  virtual void processWeaponListResponse(const DtVrfObjectMessage* msg);
77 
79 
80  typedef std::map<DtUUID, DtWeaponList> WeaponsListTable;
81 
84  };
85 }
UUID is a unique ID wrapper class.
Definition: uuid.h:59
makVrv::DtSignalConnectionManager myConnections
Definition: weaponListRequestor.h:83
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
std::map< DtUUID, DtWeaponList > WeaponsListTable
Definition: weaponListRequestor.h:80
Contains the DtUUID class declaration.
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
The class that is the interface between the GUI and the back-end.
Definition: weaponListRequestor.h:38
Contains makVrv::DtVirtualBaseClass class.
boost::signals2::signal< void(const DtUUID &)> signal_weaponListReceived
Definition: weaponListRequestor.h:66
WeaponsListTable myEntitiesTable
Definition: weaponListRequestor.h:82
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
The base class for all messages to/from a specific DtVrfObject. Various subclasses of this class will...
Definition: vrfObjectMessage.h:30
std::list< WeaponSystem > DtWeaponList
Definition: weaponListResponseAdmin.h:53
Base class to provide boost signal/slot management.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
makVrv::DtDe & myDe
Definition: weaponListRequestor.h:78

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)