VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfmodel
launchSmokeCtlr.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 <list>
12
#include "
vrfobjcore/singleTaskControllerComponent.h
"
13
#include "vlutil/vlString.h"
14
#include "
vrfmodel/vrfmodelDefines.h
"
15
16
class
DtRwSensorContactInfo
;
17
class
DtLaunchSmokeControllerDescriptor
;
18
23
class
DT_DLL_vrfmodel
DtLaunchSmokeController
:
public
DtSingleTaskControllerComponent
24
{
25
public
:
27
DtLaunchSmokeController
(
const
DtString
& name,
DtVrfObject
* owner,
28
DtSimManager
* simManager,
DtComponentDescriptor
* desc = NULL,
29
DtReaderWriterRegistry
* parentRegistry = 0);
30
32
virtual
~
DtLaunchSmokeController
();
33
35
DtLaunchSmokeController
(
const
DtLaunchSmokeController
& orig);
36
38
DtLaunchSmokeController
&
operator=
(
const
DtLaunchSmokeController
& orig);
39
42
virtual
DtString
type
()
const
;
43
45
virtual
void
registerTaskMsgCallbacks
();
46
50
static
void
launchSmokeTaskCallback(
DtSimMessage
* msg,
void
* usr);
51
54
virtual
void
processLaunchSmokeTask(
DtSimMessage
* msg);
55
58
virtual
bool
init
();
59
61
virtual
void
tick
();
62
64
static
DtSimComponent
* creator(
const
DtString
& name,
DtVrfObject
* owner,
65
DtSimManager
* simManager,
DtComponentDescriptor
* desc,
66
DtReaderWriterRegistry
* parentRegistry);
67
69
virtual
bool
useSmokeBomb();
70
73
virtual
bool
launchSmoke();
74
76
virtual
void
sendDetonation(
const
DtVector
& geocLoc)
const
;
77
79
virtual
void
launchSmokeTowards(
double
heading);
80
82
virtual
double
calculateHeadingTowards(
DtRwSensorContactInfo
* closest)
const
;
83
85
virtual
DtRwSensorContactInfo
* findClosestThreat()
const
;
86
88
virtual
void
terrainClamp(
const
DtVector
& geocLocIn,
DtVector
& geocLocOut)
const
;
89
91
virtual
void
createSmoke(
const
std::list<DtVector>& cloudLocations);
92
93
protected
:
94
const
DtLaunchSmokeControllerDescriptor
*
myDesc
;
95
std::list<DtVector>
myPoints
;
96
double
myArcRange
;
97
99
bool
myLaunchAtNearestThreat
;
100
double
myHeading
;
101
};
102
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)