VR-Forces 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() override;
27 
28  virtual bool saveScenarioPiece(
29  const DtScenario&, const std::map<DtUUID, DtLocalObject*>&, void* userData = 0) const override;
30  virtual bool saveScenarioPiece(std::vector<std::string*>&, const std::map<DtUUID, DtLocalObject*>&, void* userData = 0) const;
31 
32  virtual bool saveSimulationObjectGroup(const DtScenario&, const std::map<DtUUID, DtLocalObject*>&, int flags,
33  std::set<DtUUID>& uuidsSaved, void* userData = 0) const;
34 
35  virtual DtSaveScenarioPieceHandler* clone() const override {
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
virtual DtSaveScenarioPieceHandler * clone() const override
Definition: saveOrderOfBattleHandler.h:35
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
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:96
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.
Definition: localObject.h:98

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)