33 typedef void (*DtScriptPSRScenarioSaveLoadFcn)(
void*);
37 typedef std::map<int, std::list<DtSimTaskMessageType> >
PriorityMap;
42 const DtString& rwName = DtString::nullString(),
47 const DtString& rwName = DtString::nullString(),
58 const DtString& rwName = DtString::nullString(),
69 virtual void putSelf(std::string& fp,
int indentLevel,
bool writeUnspecified,
const DtFilename& path);
77 virtual void updateAllPriorities();
84 virtual void removeReactiveTaskEntry(
const DtSimTaskMessageType& scriptId,
bool deleteEntry =
true);
88 virtual void addActionCategories(
const std::set<DtString>& actionCategories);
89 virtual int currentReactionLevel(
const std::set<DtString>& actionCategories)
const;
90 virtual void updateReactionLevels(
const std::set<DtString>& actionCategories);
91 virtual void updateAllReactionLevels();
93 virtual void sweepMarkedForDeletion();
100 bool doCategoriesOverlap(
const std::set<DtString>& firstSet,
const std::set<DtString>& secondSet, std::set<DtString>& overlap)
const;
std::map< DtSimTaskMessageType, DtRwScriptReactiveTaskEntry * > ReactiveTaskEntryMap
Definition: scriptReactiveTaskControllerPSR.h:36
ReactiveTaskEntryMap myReactiveTaskEntryMap
Fast access only, though state will be saved through members above these.
Definition: scriptReactiveTaskControllerPSR.h:106
Definition: readerWriterRegistry.h:39
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
PriorityMap myPriorityMap
Definition: scriptReactiveTaskControllerPSR.h:107
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
DtRwTemplatedListPtr< DtRwScriptReactiveTaskEntry, false > myReactiveTasks
Definition: scriptReactiveTaskControllerPSR.h:103
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
CategoryReactionLevelMap myCategoryReactionLevelMap
Definition: scriptReactiveTaskControllerPSR.h:108
virtual void putSelf(std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename())
Top level call to write itself to file. If write unspecified is true, will write entries that are uns...
DtRwUserQuestionHandler myUserQuestionHandler
Definition: scriptReactiveTaskControllerPSR.h:110
Class DtVrfProcessStateRepository: Abstract base class for all process state repositories. Process state repositories represent (potentially) shared, savable information for one or more components functioning together to achieve some process or set of processes; such as aiming and firing a weapon; moving an object; or just waiting a specified amount of time.
Definition: vrfProcessStateRepository.h:45
virtual void getSelf(DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings)
Top level to read itself from an input stream. searchPath is passed down to all DtReaderWriter member...
Definition: scriptReactiveTaskControllerPSR.h:30
Definition: rwScriptReactiveTaskEntry.h:21
Process Helper class to handle user questions.
Definition: rwUserQuestionHandler.h:17
std::map< DtString, int > CategoryReactionLevelMap
Definition: scriptReactiveTaskControllerPSR.h:38
virtual DtString type() const =0
Returns the string type of the repository, as defined in procSRTypes.h.
std::map< int, std::list< DtSimTaskMessageType > > PriorityMap
Definition: scriptReactiveTaskControllerPSR.h:37
const DtVrfProcessStateRepository & operator=(const DtVrfProcessStateRepository &orig)
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