VR-Forces 4.6 Class Documentation
 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 #include <vrvUtil/signalslib.h>
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::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 }

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)