VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
combatRangeController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 
10 
11 #pragma once
12 
17 
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:
84 
87 
90 
91 protected:
92 
95  //ASR of the aggregate owning the controller
96  //If not an aggregate, this will be null
98 };
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
Description: Objects may contain a collection of other objects, such as overlays or pseudo-aggregate ...
Definition: subordinateManager.h:45
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
DtCombatRangeController adds range rings for aggregates Uses Descriptor Type: DtCombatRangeController...
Definition: combatRangeController.h:21
const DtControllerComponent & operator=(const DtControllerComponent &orig)
assignment operator
virtual const char * type() const =0
This returns a string from compTypes.h, and identifies the type of component.
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
Definition: readerWriterRegistry.h:39
virtual bool init()
Calls setRadio()
virtual void tick()
This gives the thread of control to the component.
bool myRebuildRangeItemListOnNextTick
Definition: combatRangeController.h:94
const DtCombatRangeControllerDescriptor * myDescriptor
Definition: combatRangeController.h:93
Definition: rangeItem.h:136
End User Description: DtControllerComponent is the base class for all controllers components...
Definition: controllerComponent.h:29
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
DtCombatRangeControllerDescriptor, descriptor for the DtCombatRangeController component.
Definition: combatRangeControllerDescriptor.h:27
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
Definition: vrfAggregateStateRepository.h:22
DtVrfAggregateStateRepository * myOwningAggregateSR
Definition: combatRangeController.h:97

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)