VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
cruiseMissileLaunchControllerPSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 #pragma once
9 
11 #include "vrfobjcore/simObject.h"
12 #include <readerWriter/rwReal.h>
13 #include <readerWriter/rwString.h>
14 #include <readerWriter/rwBoolean.h>
15 #include <vrfutil/rwUUID.h>
17 
22 
23 
26 {
27 public:
28 
31  const DtString& rwName = DtString::nullString(),
32  DtReaderWriterRegistry* parentRegistry = 0);
33 
36  const DtString& rwName = DtString::nullString(),
37  DtReaderWriterRegistry* parentRegistry = 0);
38 
41 
44 
47  const DtString& rwName = DtString::nullString(),
48  DtReaderWriterRegistry* parentRegistry = 0) const;
49 
51  virtual DtString type() const;
52 
55  virtual void setLastLaunchTime(double time);
56  virtual double lastLaunchTime() const;
58 
62  virtual void setLastLaunchedMunition(const DtUUID&);
63 
65  virtual DtSimObjectReference lastLaunchedMunition() const;
67 
71  virtual void setHasLaunchRequest(const bool hasRequest);
72  virtual bool hasLaunchRequest() const;
74 
77  virtual void setLaunchRequestTarget(const DtUUID& target);
78  virtual const DtUUID& launchRequestTarget() const;
80 
81 public:
82 
84  static DtVrfProcessStateRepository* creator (const DtString& rwName,
85  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
86 
87 protected:
88 
93 };
UUID is a unique ID wrapper class.
Definition: uuid.h:59
class DtCruiseMissileLaunchControllerPSR:
Definition: cruiseMissileLaunchControllerPSR.h:25
DtRwBoolean myHasLaunchRequest
Definition: cruiseMissileLaunchControllerPSR.h:91
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
Definition: readerWriterRegistry.h:39
Contains the DtUUID class declaration.
uuid class
Definition: rwUUID.h:26
Specialized reader/writer version of the shared object reference that will encapsulate the actual sha...
Definition: rwSimObjectReference.h:21
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
DtRwUUID myLaunchRequestTarget
Definition: cruiseMissileLaunchControllerPSR.h:92
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
DtRwSimObjectReference myLastLaunchedMunition
Definition: cruiseMissileLaunchControllerPSR.h:90
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
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
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
DtRwReal myLastLaunchTime
Definition: cruiseMissileLaunchControllerPSR.h:89
virtual DtString type() const =0
Returns the string type of the repository, as defined in procSRTypes.h.
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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)