VR-Forces 4.1.1 Class Documentation
balGunJoy.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/balGun.h"
15 #include <vl/fireInter.h>
16 #include <vl/detonateInter.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 
60  virtual DtReal setTarget(DtArticulatedPartStateRepository *rotBody);
61 
62  virtual DtFireInteraction* manualFireInteraction(
64 
65  virtual DtDetonationInteraction* manualDetonationInteraction(
66  DtArticulatedPartStateRepository *rotBody, DtReal& detTime, DtReal dist);
67 
68  virtual DtVrfObject *targetSelection(
69  DtArticulatedPartStateRepository *rotBody, DtReal &dist);
70 
71  virtual DtReal distanceToTarget();
72 
80  static void detonationCallback(DtTimer * timer);
81 
85  static DtSimComponent * creator(const DtString& name,
86  DtVrfObject* owner,
87  DtSimManager* simManager,
88  DtComponentDescriptor* desc = 0,
89  DtReaderWriterRegistry* parentRegistry = 0);
90 
91 private:
95 
98 
100  const DtBallisticGunJoy & operator=(const DtBallisticGunJoy & orig);
101 
102 protected:
103 
106 
113 
120 
122 
123 };
124 

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)