VR-Forces 4.6 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
vrfobjcore
weaponComponentInterface.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2012 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
9
#pragma once
10
11
#include "
vrfobjcore/baseWeaponComponentInterface.h
"
12
#include <vl/hostStructs.h>
13
#include "
vrfobjcore/vrfobjcoreDefines.h
"
14
#include "
vrfobjparam/targetSelectionCriteria.h
"
15
#include "
vrfobjcore/entityTargetInformation.h
"
16
17
class
DtSpatialFilterEvaluator
;
18
20
class
DT_DLL_vrfobjcore
DtWeaponComponentInterface
:
public
DtBaseWeaponComponentInterface
21
{
22
23
private
:
25
DtWeaponComponentInterface
();
26
27
public
:
28
//constructor
29
DtWeaponComponentInterface
(
DtVrfObject
* vrfObject,
30
const
DtString
& rwName = DtString::nullString(),
31
DtReaderWriterRegistry
* parentRegistry = 0);
32
33
//copy constructor
34
DtWeaponComponentInterface
(
const
DtWeaponComponentInterface
& orig,
35
const
DtString
& rwName = DtString::nullString(),
36
DtReaderWriterRegistry
* parentRegistry = 0);
37
38
//assignment operator
39
const
DtWeaponComponentInterface
&
operator=
(
40
const
DtWeaponComponentInterface
& orig);
41
42
//destructor
43
virtual
~
DtWeaponComponentInterface
();
44
45
//returns a copy of the PSR
46
virtual
DtVrfProcessStateRepository
*
clone
(
47
const
DtString
& rwName = DtString::nullString(),
48
DtReaderWriterRegistry
* parentRegistry = 0)
const
;
49
51
virtual
DtString
type
()
const
;
52
54
55
virtual
void
setTargetSelectionCriteria(
const
DtTargetSelectionCriteria
& tsc);
56
virtual
const
DtTargetSelectionCriteria
& targetSelectionCriteria()
const
;
58
61
virtual
void
updateRegionEvaluator
();
66
virtual
bool
locationWithinRegion
(
const
DtVector
& localLocation)
const
;
67
69
70
virtual
void
setTarget(
const
DtEntityTargetInformation
& target);
71
virtual
const
DtEntityTargetInformation
& target()
const
;
73
74
virtual
void
clearTarget();
75
virtual
bool
hasTarget()
const
;
76
78
static
DtVrfProcessStateRepository
* creator(
const
DtString
& name,
79
DtVrfObject
* vrfObject,
DtReaderWriterRegistry
* parentRegistry);
80
81
protected
:
84
virtual
void
setupRegionEvaluator();
85
86
protected
:
88
DtTargetSelectionCriteria
myTargetSelectionCriteria
;
89
91
DtEntityTargetInformation
myTarget
;
92
93
DtSpatialFilterEvaluator
*
myRegionEvaluator
;
94
};
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)