VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
saveOrderOfBattleHandler.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
10 #include <set>
11 #include <string>
12 
14 class DtEntityType;
15 
20 {
21 public:
24 
26  virtual ~DtSaveOrderOfBattleHandler();
27 
28  virtual bool saveScenarioPiece(const DtScenario&, const std::map<DtUUID, DtLocalObject*>&, void* userData = 0) const;
29  virtual bool saveScenarioPiece(std::vector<std::string*>&, const std::map<DtUUID, DtLocalObject*>&, void* userData = 0) const;
30 
31  virtual bool saveSimulationObjectGroup(const DtScenario&, const std::map<DtUUID, DtLocalObject*>&, int flags,
32  std::set<DtUUID>& uuidsSaved, void* userData = 0) const;
33 
35  {
36  return new DtSaveOrderOfBattleHandler(*this);
37  }
38 
42  virtual bool objectShouldBeSavedToSimulationObjectGroup(
43  const DtLocalObject* vrfObject) const;
44 
45 protected:
46  virtual bool writeOrderOfBattle(std::string& str, const std::map<DtUUID, DtLocalObject*>&) const;
47 
51  virtual bool objectShouldBeSavedToOrderOfBattle(
52  const DtLocalObject* vrfObject) const;
53 
56  virtual bool acceptRemoteEnvironmental(const DtEntityType& et) const;
57 
58 protected:
60 };
DtSimulationServices * mySimulationServices
Definition: saveOrderOfBattleHandler.h:59
Definition: scenario.h:52
The class to save a piece of the scenario. Return false if the save of that piece fails...
Definition: scenarioLoadManager.h:64
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
virtual DtSaveScenarioPieceHandler * clone() const
Definition: saveOrderOfBattleHandler.h:34
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:90
virtual bool saveScenarioPiece(const DtScenario &, const std::map< DtUUID, DtLocalObject * > &, void *userData=0) const =0
Saves all objects to the file presented in the scenario.
The DtSaveOrderOfBattleHandler will save an order of battle file (oob) and archive all the local obje...
Definition: saveOrderOfBattleHandler.h:18
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)