![]() |
VR-Forces Development_Version Class Documentation
|
The indirect artillery manager will manage the indirect artillery items created int the scenario and allow for creation, deletion and modification of those items. More...

Classes | |
| struct | IndirectArtilleryData |
Public Types | |
| typedef std::map < makVrv::DtElementID, IndirectArtilleryData > | IndirectArtilleryMap |
Public Member Functions | |
| DtIndirectArtilleryManager (makVrv::DtDe &) | |
| CTOR. Registers all known dialogs with manager. | |
| virtual | ~DtIndirectArtilleryManager () |
| DTOR. | |
| void | setAutoSave (bool b) |
| bool | autoSave () const |
| virtual void | getRecord (DtIndirectArtillerySettingsRecord &rec) const |
| Get/Set record for default settings for indirect artillery objects. | |
| virtual void | getDefaultData (DtIfIndirectArtilleryData &rec) const |
| virtual void | setFromRecord (const DtIndirectArtillerySettingsRecord &rec) |
| virtual void | emptyList () |
| Empties the list of available indirect artillery munitions. | |
| virtual void | load (const std::string &) |
| Loads and adds the items in the specified artillery file into this manager as available artillery munitions. | |
| const IndirectArtilleryMap & | indirectArtillery () const |
| virtual bool | hasIndirectArtilleryData (makVrv::DtElementID) const |
| Returns true if there is indirect artillery data for the specified item. | |
| virtual DtIfIndirectArtilleryData | indirectArtilleryData (makVrv::DtElementID id) const |
| Returns indirect artillery data for the specified item. | |
| const DtIndirectArtilleryTypesManager & | typesManager () const |
| virtual void | loadDefaults (bool fromFactory=false) |
| Loads default or factory record. | |
| virtual void | saveAsDefaults () |
| Saves record as default record. | |
| const makVrv::DtRecordSettingsBackupInterface * | settingsBackup () const |
| makVrv::DtRecordSettingsBackupInterface * | settingsBackup () |
| void | exportSettings (const std::string &fileName) |
| Exports the current cache settings to a file. | |
| void | importSettings (const std::string &fileName) |
| Import the current cache settings from a file. | |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. | |
Static Public Member Functions | |
| static DtIndirectArtilleryManager & | instance (makVrv::DtDe &de) |
| Returns instance of the manager. | |
| static void | registerInstance (makVrv::DtDe &, DtIndirectArtilleryManager *) |
| Register a new manager instance. | |
Public Attributes | |
| boost::signal< void(const DtIndirectArtillerySettingsRecord &)> | signal_indirectArtillerySettingsChanged |
| Sent after anything about the indirect artillery options have changed. | |
| boost::signal< void(makVrv::DtElementID, const std::string &name, const DtIfIndirectArtilleryData &)> | signal_updated |
| boost::signal< void(makVrv::DtElementID)> | signal_removed |
Protected Member Functions | |
| virtual void | initArtilleryAreas () |
| Sets up the list widget with all current artillery areas. | |
| virtual void | addIfArtillery (const makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *) |
| Adds this item in if it is an artillery item (by matching object type) | |
| virtual void | indirectFireObjectAdded (const makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *) |
| virtual void | indirectFireObjectRemoved (const makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *) |
| virtual void | indirectArtilleryDataReceived (DtSimMessage *) |
| Called when received indirect artillery data. | |
| virtual void | slot_onArtilleryUpdated (const makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *) |
| Called when an artillery state view is updated, if name has changed, then signal an update. | |
The indirect artillery manager will manage the indirect artillery items created int the scenario and allow for creation, deletion and modification of those items.
| typedef std::map<makVrv::DtElementID, IndirectArtilleryData> makVrf::DtIndirectArtilleryManager::IndirectArtilleryMap |
| makVrf::DtIndirectArtilleryManager::DtIndirectArtilleryManager | ( | makVrv::DtDe & | ) |
CTOR. Registers all known dialogs with manager.
|
virtual |
DTOR.
|
static |
Returns instance of the manager.
|
static |
Register a new manager instance.
| void makVrf::DtIndirectArtilleryManager::setAutoSave | ( | bool | b | ) |
| bool makVrf::DtIndirectArtilleryManager::autoSave | ( | ) | const |
|
virtual |
Get/Set record for default settings for indirect artillery objects.
|
virtual |
|
virtual |
|
virtual |
Empties the list of available indirect artillery munitions.
|
virtual |
Loads and adds the items in the specified artillery file into this manager as available artillery munitions.
|
inline |
|
virtual |
Returns true if there is indirect artillery data for the specified item.
|
virtual |
Returns indirect artillery data for the specified item.
| const DtIndirectArtilleryTypesManager& makVrf::DtIndirectArtilleryManager::typesManager | ( | ) | const |
|
virtual |
Loads default or factory record.
|
virtual |
Saves record as default record.
|
inline |
|
inline |
| void makVrf::DtIndirectArtilleryManager::exportSettings | ( | const std::string & | fileName | ) |
Exports the current cache settings to a file.
| void makVrf::DtIndirectArtilleryManager::importSettings | ( | const std::string & | fileName | ) |
Import the current cache settings from a file.
|
protectedvirtual |
Sets up the list widget with all current artillery areas.
|
protectedvirtual |
Adds this item in if it is an artillery item (by matching object type)
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Called when received indirect artillery data.
Send update message if know about area, or, if do not know about area, see if know about it and then add new area
|
protectedvirtual |
Called when an artillery state view is updated, if name has changed, then signal an update.
| boost::signal<void (const DtIndirectArtillerySettingsRecord&)> makVrf::DtIndirectArtilleryManager::signal_indirectArtillerySettingsChanged |
Sent after anything about the indirect artillery options have changed.
| boost::signal<void (makVrv::DtElementID, const std::string& name, const DtIfIndirectArtilleryData&)> makVrf::DtIndirectArtilleryManager::signal_updated |
| boost::signal<void (makVrv::DtElementID)> makVrf::DtIndirectArtilleryManager::signal_removed |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |