VR-Forces 5.0.2 Developer's Guide
 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 
18 
23 {
24 
25 public:
26 
29  DtCombatRangeController(const DtString& name,
30  DtLocalObject* owner,
31  DtSimulationServices* simManager,
32  DtComponentDescriptor* desc = 0,
33  DtReaderWriterRegistry* parentRegistry = 0);
34 
36  virtual ~DtCombatRangeController();
37 
40  virtual const char* type() const;
41 
45  static DtSimComponent * creator(const DtString& name,
46  DtLocalObject* owner,
47  DtSimulationServices* simManager,
48  DtComponentDescriptor* desc = 0,
49  DtReaderWriterRegistry* parentRegistry = 0);
50 
51  virtual bool init();
52 
57  virtual void setRangeItems();
58 
59 protected:
60 
63  virtual void setRangeItemsFromDescriptor();
64 
67  virtual void setRangeItemsFromSubordinates();
68 
70  virtual void tick();
71 
73  virtual void mergeRangeItems(const DtRangeItems&);
74 
75  virtual void setRebuildRangeItemListOnNextTick( bool onOff );
76  virtual bool rebuildRangeItemListOnNextTick();
77 
78  virtual bool belongsToAggregate();
79 
80 private:
83 
86 
89 
90 protected:
91 
95 
96  boost::signals2::scoped_connection mySubordinateAddedConnection;
97  boost::signals2::scoped_connection mySubordinateRemovedConnection;
98 };
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtCombatRangeController adds range rings for aggregates Uses Descriptor Type: DtCombatRangeController...
Definition: combatRangeController.h:22
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:49
boost::signals2::scoped_connection mySubordinateRemovedConnection
Definition: combatRangeController.h:97
Definition: readerWriterRegistry.h:39
virtual bool init()
Calls setRadio()
DtAggregateLocalObjectFacade myAggregateLocalObjectFacade
Definition: combatRangeController.h:94
boost::signals2::scoped_connection mySubordinateAddedConnection
Definition: combatRangeController.h:96
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
bool myRebuildRangeItemListOnNextTick
Definition: combatRangeController.h:93
const DtCombatRangeControllerDescriptor * myDescriptor
Definition: combatRangeController.h:92
Definition: rangeItem.h:206
End User Description: DtControllerComponent is the base class for all controllers components...
Definition: controllerComponent.h:31
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:90
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
DtCombatRangeControllerDescriptor, descriptor for the DtCombatRangeController component.
Definition: combatRangeControllerDescriptor.h:28
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)