VR-Forces 4.2 Class Documentation
weaponPSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2002 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: weaponPSR.h,v $ $Revision: 1.6 $ $State: Exp $
7 *******************************************************************************/
8 
11 
17 
18 #ifndef DtVrfWeaponPSR_H_
19 #define DtVrfWeaponPSR_H_
20 
21 #include "vrfobjcore/processSR.h"
22 
23 #include <vl/hostStructs.h>
24 #include "vrfutil/rwString.h"
25 #include "vrfutil/rwBoolean.h"
26 #include "vrfutil/rwReal.h"
27 #include "vrfobjcore/munLoader.h"
28 
32 
35 {
36 
37 protected:
38 
40 
41 public:
42 
43  DtVrfWeaponPSR(DtVrfObject* vrfObject,
44  const DtString& rwName = DtString::nullString(),
45  DtReaderWriterRegistry* parentRegistry = 0);
46 
47  DtVrfWeaponPSR(const DtVrfWeaponPSR& orig,
48  const DtString& rwName = DtString::nullString(),
49  DtReaderWriterRegistry* parentRegistry = 0);
50 
51  const DtVrfWeaponPSR& operator=(
52  const DtVrfWeaponPSR& orig);
53 
54  virtual ~DtVrfWeaponPSR();
55 
57  const DtString& rwName = DtString::nullString(),
58  DtReaderWriterRegistry* parentRegistry = 0) const;
59 
61  virtual DtString type() const;
62 
66  virtual void setCurrentTarget(const DtEntityIdentifier& target,
67  bool targetOverride = false);
68  virtual const DtEntityIdentifier& currentTarget() const;
69 
73  virtual void setUserTargetOverride(bool userTargetOverride);
74  virtual bool userTargetOverride() const;
75 
77  virtual void setCurrentTargetName(const DtString& target,
78  bool targetOverride = false);
79  virtual const DtString& currentTargetName() const;
80 
82  virtual const DtVrfMunitionLoader& munitionLoader() const;
83  virtual DtVrfMunitionLoader& munitionLoader();
84 
86  virtual void setCurrentMunitionName(const DtString & currentMunitionName);
88  virtual const DtString & currentMunitionName() const;
89 
91  virtual bool targetAcquired() const;
92  virtual void setTargetAcquired(bool targetAcquired);
93 
95  static DtVrfProcessStateRepository* creator(const DtString& name,
96  DtVrfObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
97 
98 protected:
99 
104 
106 
109  DtEntityIdentifier myCurrentTargetId;
110 
111 };
112 
113 #endif

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)