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 
12 #include <set>
13 #include <string>
14 
16 class DtEntityType;
17 
22 {
23 public:
27 
29  virtual ~DtSaveOrderOfBattleHandler() override;
30 
31  virtual bool saveScenarioPiece(
32  const DtScenario&, const std::map<DtUUID, DtLocalObject*>&, void* userData = 0, int saveType = DtLocalObject::Snapshot) const override;
33  virtual bool saveScenarioPiece(std::vector<std::string*>&, const std::map<DtUUID, DtLocalObject*>&, void* userData = 0, int saveType = DtLocalObject::Snapshot) const;
34 
35  virtual bool saveSimulationObjectGroup(const DtScenario&, const std::map<DtUUID, DtLocalObject*>&, int flags,
36  std::set<DtUUID>& uuidsSaved, void* userData = 0) const;
37 
38  virtual DtSaveScenarioPieceHandler* clone() const override {
39  return new DtSaveOrderOfBattleHandler(*this);
40  }
41 
45  virtual bool objectShouldBeSavedToSimulationObjectGroup(
46  const DtLocalObject* vrfObject) const;
47 
48 protected:
49  virtual bool writeOrderOfBattle(std::string& str, const std::map<DtUUID, DtLocalObject*>&, int saveType) const;
50 
54  virtual bool objectShouldBeSavedToOrderOfBattle(
55  const DtLocalObject* vrfObject) const;
56 
59  virtual bool acceptRemoteEnvironmental(const DtEntityType& et) const;
60 
61 protected:
63 };
DtSimulationServices * mySimulationServices
Definition: saveOrderOfBattleHandler.h:62
Definition: scenario.h:52
virtual DtSaveScenarioPieceHandler * clone() const override
Definition: saveOrderOfBattleHandler.h:38
Scenario save to disk partial to back-end that is simulating their entities.
Definition: localObject.h:890
The class to save a piece of the scenario. Return false if the save of that piece fails...
Definition: scenarioLoadManager.h:64
virtual bool saveScenarioPiece(const DtScenario &, const std::map< DtUUID, DtLocalObject * > &, void *userData=0, int flags=0) const =0
Saves all objects to the file presented in the scenario.
#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:97
The DtSaveOrderOfBattleHandler will save an order of battle file (oob) and archive all the local obje...
Definition: saveOrderOfBattleHandler.h:20
A locally simulated VRF object.
Definition: localObject.h:98

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)