VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfmodel
missileTargetController.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2013 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
6
#pragma once
7
8
#include "
vrfmodel/vrfmodelDefines.h
"
9
#include "
vrfobjcore/singleTaskControllerComponent.h
"
10
#include "
vrfutil/scriptedMovementObject.h
"
11
12
class
DtMissileTargetControllerPSR
;
13
class
DtMissileTargetControllerComponentDescriptor;
14
class
DtDetonationContext
;
15
18
class
DT_DLL_vrfmodel
DtMissileTargetController
:
public
DtSingleTaskControllerComponent
19
{
20
private
:
21
//Not Implemented.
22
DtMissileTargetController
();
23
//Not Implemented.
24
DtMissileTargetController
(
const
DtMissileTargetController
& orig);
25
//Not Implemented.
26
DtMissileTargetController
&
operator=
(
const
DtMissileTargetController
& orig);
27
28
public
:
29
30
//\copydoc DtSimComponent(const DtString&,DtVrfObject*,DtSimManager*,
31
//DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)
32
DtMissileTargetController
(
const
DtString
& name,
33
DtVrfObject
* owner,
34
DtSimManager
* simManager,
35
DtComponentDescriptor
* desc = NULL,
36
DtReaderWriterRegistry
* parentRegistry = NULL);
37
38
virtual
~
DtMissileTargetController
();
39
40
//Initial setup of component after creation.
41
virtual
bool
init
();
42
43
//Creates the process state repository for this component.
44
virtual
bool
createPSR();
45
46
//\copydoc DtSimComponent::type()
47
//\return DtTurnAndMoveControllerType.
48
virtual
DtString
type
()
const
;
49
50
//Main processing for component.
51
virtual
void
tick
();
52
53
protected
:
54
56
virtual
double
launchTime()
const
;
57
60
virtual
double
initialLaunchTime()
const
;
61
63
virtual
double
moveOutHeading()
const
;
64
66
virtual
std::string scriptedMovementObject()
const
;
67
68
virtual
void
preFirstTickInit
();
69
70
public
:
71
72
//\copydoc DtSimComponent(const DtString&,DtVrfObject*,DtSimManager*,
73
//DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)
74
//\return New instance of this class.
75
static
DtSimComponent
* creator(
const
DtString
& name,
76
DtVrfObject
* owner,
77
DtSimManager
* simManager,
78
DtComponentDescriptor
* desc = 0,
79
DtReaderWriterRegistry
* parentRegistry = 0);
80
81
protected
:
83
virtual
void
createObjectForPhase(
int
phase);
84
86
virtual
DtTaitBryan launchOrientation(
const
DtScriptedMovementPhase
& phase)
const
;
87
89
virtual
void
setup();
90
91
protected
:
92
DtMissileTargetControllerPSR
*
myProcessState
;
93
DtScriptedMovementObject
myScriptedMovementObject
;
94
bool
myValid
;
95
bool
myNeedsSetup
;
96
};
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
)