VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ballisticGunJoy.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1999 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
14 #include "vrfmodel/ballisticGun.h"
15 #include <vl/fireInteraction.h>
16 #include <vl/detonationInteraction.h>
17 #include "vrfcore/timer.h"
18 #include <vl/hostStructs.h>
19 
20 class DtSimManager;
22 class DtBooleanInputPort;
24 class DtVrfObject;
25 
32 {
33 public:
34 
37  DtBallisticGunJoy(const DtString & name, DtVrfObject* owner,
38  DtSimManager *simManager, DtComponentDescriptor* desc,
39  DtReaderWriterRegistry * const parentRegistry = 0);
40 
41 public:
43  virtual ~DtBallisticGunJoy();
44 
47  virtual DtString type() const;
48 
50  virtual bool createPorts();
51 
54  virtual void setComponentDescriptor(DtComponentDescriptor * descriptor);
55 
58  virtual void tick();
59 
64  virtual DtReal setTarget(DtSimObjectStateRepository *rotBody);
65 
70  virtual DtFireInteraction* manualFireInteraction(
72 
73  virtual DtDetonationInteraction* manualDetonationInteraction(
74  DtSimObjectStateRepository *rotBody, DtReal& detTime, DtReal dist);
75 
82  virtual DtVrfObject *targetSelection(
83  DtSimObjectStateRepository *rotBody, DtReal &dist);
84 
85  virtual DtReal distanceToTarget();
86 
94  static void detonationCallback(DtTimer * timer);
95 
99  static DtSimComponent * creator(const DtString& name,
100  DtVrfObject* owner,
101  DtSimManager* simManager,
102  DtComponentDescriptor* desc = 0,
103  DtReaderWriterRegistry* parentRegistry = 0);
104 
105 private:
109 
111  DtBallisticGunJoy(const DtBallisticGunJoy & orig);
112 
114  const DtBallisticGunJoy & operator=(const DtBallisticGunJoy & orig);
115 
116 protected:
117 
120 
127 
134 
136 
140 };
141 

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)