VR-Forces Development_Version Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrfmodel
combatRangeController.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2012 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
10
11
#pragma once
12
13
#include <
vrfmodel/vrfmodelDefines.h
>
14
#include <
vrfobjcore/controllerComponent.h
>
15
#include <
vrfobjcore/vrfAggregateStateRepository.h
>
16
#include <
vrfobjcore/subordinateManager.h
>
17
18
class
DtCombatRangeControllerDescriptor
;
19
21
class
DT_DLL_vrfmodel
DtCombatRangeController
:
public
DtControllerComponent
22
{
23
24
public
:
25
28
DtCombatRangeController
(
const
DtString
& name,
29
DtVrfObject
* owner,
30
DtSimManager
* simManager,
31
DtComponentDescriptor
* desc = 0,
32
DtReaderWriterRegistry
* parentRegistry = 0);
33
35
virtual
~
DtCombatRangeController
();
36
39
virtual
const
char
*
type
()
const
;
40
44
static
DtSimComponent
* creator(
const
DtString
& name,
45
DtVrfObject
* owner,
46
DtSimManager
* simManager,
47
DtComponentDescriptor
* desc = 0,
48
DtReaderWriterRegistry
* parentRegistry = 0);
49
50
virtual
bool
init
();
51
56
virtual
void
setRangeItems();
57
58
protected
:
59
62
virtual
void
setRangeItemsFromDescriptor();
63
66
virtual
void
setRangeItemsFromSubordinates();
67
69
virtual
void
tick
();
70
72
virtual
void
mergeRangeItems(
const
DtRangeItems
&);
73
74
static
void
subordinateChangedCallback(
const
DtSubordinateManager
& subordinateManager,
void
* userData);
75
76
virtual
void
setRebuildRangeItemListOnNextTick(
bool
onOff );
77
virtual
bool
rebuildRangeItemListOnNextTick();
78
79
virtual
bool
belongsToAggregate();
80
81
private
:
83
DtCombatRangeController
();
84
86
DtCombatRangeController
(
const
DtCombatRangeController
& orig);
87
89
const
DtCombatRangeController
&
operator=
(
const
DtCombatRangeController
&orig);
90
91
protected
:
92
93
const
DtCombatRangeControllerDescriptor
*
myDescriptor
;
94
bool
myRebuildRangeItemListOnNextTick
;
95
//ASR of the aggregate owning the controller
96
//If not an aggregate, this will be null
97
DtVrfAggregateStateRepository
*
myOwningAggregateSR
;
98
};
Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)