VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
laserLauncherPSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
14 
15 #pragma once
16 
18 #include "vrfobjcore/simObject.h"
19 
20 #include <readerWriter/rwString.h>
21 #include <readerWriter/rwBoolean.h>
22 #include <readerWriter/rwReal.h>
23 #include <readerWriter/rwInt.h>
24 #include "readerWriter/rwVector.h"
25 #include <vrfutil/rwUUID.h>
26 
31 
34 {
35 
36 protected:
39 
40 public:
41  //constructor
43  const DtString& rwName = DtString::nullString(),
44  DtReaderWriterRegistry* parentRegistry = 0);
45 
46  //copy constructor
48  const DtString& rwName = DtString::nullString(),
49  DtReaderWriterRegistry* parentRegistry = 0);
50 
51  //assignment operator
53  const DtLaserLauncherPSR& orig);
54 
55  //destructor
56  virtual ~DtLaserLauncherPSR();
57 
58  //returns a copy of the PSR
60  const DtString& rwName = DtString::nullString(),
61  DtReaderWriterRegistry* parentRegistry = 0) const;
62 
64  virtual DtString type() const;
65 
67  virtual void setDesignatorCode(const int code);
68  virtual const int designatorCode() const;
69 
71  virtual void setLastLaunchTime(double time);
72  virtual double lastLaunchTime() const;
73 
75 
76  virtual void setMissileInFlight(const DtUUID&);
78 
80  virtual bool missileInFlightSpecified() const;
81 
83  virtual DtSimObjectReference missileInFlight() const;
85 
87  static DtVrfProcessStateRepository* creator(const DtString& name,
88  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
89 
90 protected:
95 };
UUID is a unique ID wrapper class.
Definition: rwUUID.h:226
DtRwReal myLastLaunchTime
Definition: laserLauncherPSR.h:92
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.
Specialized reader/writer version of the shared object reference that will encapsulate the actual sha...
Definition: simObjectReference.h:74
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
Description: Readable, Writable int.
Definition: rwInt.h:25
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
DtRwInt myDesignatorCode
Definition: laserLauncherPSR.h:91
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
File: laserLauncherPSR.h.
Definition: laserLauncherPSR.h:33
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 DtString type() const =0
Returns the string type of the repository, as defined in procSRTypes.h.
DtRwSimObjectReference myMissileInFlight
The current missile in flight (if any)
Definition: laserLauncherPSR.h:94
File: rwVector.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 Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)