VR-Forces 4.7 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrfmodel
launchSmokeController.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2008 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
9
#pragma once
10
11
#include "
vrfobjcore/singleTaskControllerComponent.h
"
12
#include "
vrfobjcore/launchSmokePSR.h
"
13
#include "vlutil/vlString.h"
14
#include "
vrfmodel/vrfmodelDefines.h
"
15
16
#include <list>
17
18
class
DtRwSensorContactInfo
;
19
class
DtLaunchSmokeControllerDescriptor
;
20
25
class
DT_DLL_vrfmodel
DtLaunchSmokeController
:
public
DtSingleTaskControllerComponent
26
{
27
public
:
29
DtLaunchSmokeController
(
const
DtString
& name,
DtVrfObject
* owner,
30
DtSimManager
* simManager,
DtComponentDescriptor
* desc = NULL,
31
DtReaderWriterRegistry
* parentRegistry = 0);
32
34
virtual
~
DtLaunchSmokeController
();
35
37
DtLaunchSmokeController
(
const
DtLaunchSmokeController
& orig);
38
40
DtLaunchSmokeController
&
operator=
(
const
DtLaunchSmokeController
& orig);
41
44
virtual
const
char
*
type
()
const
;
45
47
virtual
void
registerTaskMsgCallbacks
();
48
52
static
void
launchSmokeTaskCallback(
DtSimMessage
* msg,
void
* usr);
53
56
virtual
void
processLaunchSmokeTask(
DtSimMessage
* msg);
57
60
virtual
bool
init
();
61
63
virtual
void
tick
();
64
66
static
DtSimComponent
* creator(
const
DtString
& name,
DtVrfObject
* owner,
67
DtSimManager
* simManager,
DtComponentDescriptor
* desc,
68
DtReaderWriterRegistry
* parentRegistry);
69
71
virtual
bool
useSmokeBomb();
72
75
virtual
bool
launchSmoke();
76
78
virtual
void
sendDetonation(
const
DtVector
& geocLoc)
const
;
79
81
virtual
void
launchSmokeTowards(
double
heading);
82
84
virtual
double
calculateHeadingTowards(
DtRwSensorContactInfo
* closest)
const
;
85
87
virtual
DtRwSensorContactInfo
* findClosestThreat()
const
;
88
90
virtual
void
terrainClamp(
const
DtVector
& geocLocIn,
DtVector
& geocLocOut)
const
;
91
93
virtual
void
createSmoke(
const
std::list<DtVector>& cloudLocations);
94
95
protected
:
97
virtual
bool
createPSR();
98
99
protected
:
100
const
DtLaunchSmokeControllerDescriptor
*
myDesc
;
101
103
DtLaunchSmokePSR
*
myProcessState
;
104
105
std::list<DtVector>
myPoints
;
106
double
myArcRange
;
107
};
108
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)