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>
17 #include <vrfutil/rwUUID.h>
18 
20 
21 #include <vrvCore/DtSimEntry.h>
22 
23 #include <vector>
24 
25 namespace makVrv
26 {
27  class DtDe;
28  class DtSimObjectEntry;
29 }
30 
31 class DtVrfObjectMessage;
32 
33 namespace makVrf
34 {
37  {
38  public:
40  virtual ~DtWeaponListRequestor();
41 
42  static DtWeaponListRequestor& instance(makVrv::DtDe& de);
43 
46  virtual DtWeaponList weaponSystemsForEntity(const DtUUID&) const;
47 
49  virtual bool hasWeaponSystemsForEntity(const DtUUID&) const;
50 
52  virtual void weaponSystems(std::vector<DtUUID> entities, DtWeaponList& weaponSystems);
53 
57  virtual void updateWeaponSystems(const DtUUID&, bool getResources=false);
58 
62  virtual void clearEntityEntry(const DtUUID&);
63 
64  boost::signals2::signal<void (const DtUUID&)> signal_weaponListReceived;
65 
66  protected:
67 
68  virtual void slot_onSimDataRemoved(makVrv::DtSimObjectEntry&);
69 
74  virtual void processWeaponListResponse(const DtVrfObjectMessage* msg);
75 
77 
78  typedef std::map<DtUUID, DtWeaponList> WeaponsListTable;
79 
81  };
82 }
UUID is a unique ID wrapper class.
Definition: uuid.h:59
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:78
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:36
Contains makVrv::DtVirtualBaseClass class.
Contains makVrv::DtSimEntry class.
A DtSimObjectEntry is an entry for a persistent simulation object like an entity. ...
Definition: DtSimObjectEntry.h:22
boost::signals2::signal< void(const DtUUID &)> signal_weaponListReceived
Definition: weaponListRequestor.h:64
WeaponsListTable myEntitiesTable
Definition: weaponListRequestor.h:80
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:60
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:72
makVrv::DtDe & myDe
Definition: weaponListRequestor.h:76

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)