VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
makVrf::DtVrfGuiForceManager Class Reference

Extends the force manager to add country codes. More...

Inheritance diagram for makVrf::DtVrfGuiForceManager:
Inheritance graph
[legend]

Public Member Functions

 DtVrfGuiForceManager (makVrv::DtSharedSettingsManager &manager)
 
virtual ~DtVrfGuiForceManager ()
 DTOR. More...
 
virtual DtString countryCode (DtForceType) const
 Returns the country code for the given force. More...
 
virtual void setCountryCode (DtForceType, const DtString &)
 Sets the country code for the given force. More...
 
virtual void addForce (DtForceType force, const std::string &forceName, const RGBAColor &forceColor, const RGBAColor &forcePrimaryColor, bool includeInDialogs=true, const DtString &countryCode="")
 Adds a new force DtForceType to the manager. More...
 
virtual void removeForce (DtForceType)
 Removes force from system. More...
 
virtual DtForceManager::RGBAColor colorForForce (DtForceType force, bool usePrimaryColors=false) const
 Color for a specified force. More...
 
virtual DtForceType newNextAvailableId () const
 Next available force that has no name associated with it. More...
 
- Public Member Functions inherited from makVrv::DtForceManager
 DtForceManager (DtSharedSettingsManager &manager)
 CTOR. More...
 
virtual ~DtForceManager ()
 DTOR. More...
 
virtual void addForce (DtForceType force, const std::string &forceName, const RGBAColor &forceColor, const RGBAColor &forcePrimaryColor, bool includeInDialogs=true)
 Adds a new force DtForceType to the manager. More...
 
virtual int numForces () const
 Number of forces in the force list. More...
 
virtual DtForceType forceAt (int iIndex) const
 Force Type for a specific index. More...
 
virtual std::string nameForForce (DtForceType force) const
 Name for a specified force. More...
 
virtual DtForceType forceFromName (const std::string &name) const
 Force Type for a specific force name. More...
 
virtual bool includeInDialogs (DtForceType force) const
 Whether the force is included in VRF dialogs. More...
 
virtual void clearForces ()
 Clear hash list of forces. More...
 
virtual void setHostility (DtU8 force, DtU8 targetForce, bool hostile)
 
virtual bool hostile (DtU8 force, DtU8 targetForce)
 
- Public Member Functions inherited from makVrv::DtSharedSettings
 DtSharedSettings (const DtSharedSettingsManager &manager)
 CTOR. More...
 
virtual ~DtSharedSettings ()
 DTOR. More...
 
boost::shared_mutex & mutex ()
 Get the mutex for the settings object. More...
 
SafetyKey safeToEmitSignals ()
 Create a safety key for the function, see above example. More...
 
void setCurrentWriteLock (boost::unique_lock< boost::shared_mutex > *currentWriteLock)
 No need to call, set by the DtWriteSettingLock object. More...
 
virtual const DtSettingsBackupsettingsBackup () const
 Accessor for the settings backup (const). More...
 
virtual DtSettingsBackupsettingsBackup ()
 Accessor for the settings backup. More...
 
virtual void backup ()
 Called to back up the settings. More...
 
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 Do nothing constructor. More...
 
virtual ~DtVirtualBaseClass ()
 Virtual do nothing destructor. More...
 

Protected Attributes

std::map< int, DtStringmyCountryCodes
 
- Protected Attributes inherited from makVrv::DtForceManager
ForceInfo myNullForce
 
std::map< DtForceType, ForceInfomyForces
 

Additional Inherited Members

- Static Public Member Functions inherited from makVrv::DtForceManager
static const std::string & className ()
 
- Protected Member Functions inherited from makVrv::DtForceManager
virtual const ForceInfoforceInformation (DtForceType force) const
 
virtual ForceInfoforceInformation (DtForceType force)
 

Detailed Description

Extends the force manager to add country codes.

Constructor & Destructor Documentation

makVrf::DtVrfGuiForceManager::DtVrfGuiForceManager ( makVrv::DtSharedSettingsManager manager)
virtual makVrf::DtVrfGuiForceManager::~DtVrfGuiForceManager ( )
virtual

DTOR.

Member Function Documentation

virtual DtString makVrf::DtVrfGuiForceManager::countryCode ( DtForceType  ) const
virtual

Returns the country code for the given force.

virtual void makVrf::DtVrfGuiForceManager::setCountryCode ( DtForceType  ,
const DtString  
)
virtual

Sets the country code for the given force.

virtual void makVrf::DtVrfGuiForceManager::addForce ( DtForceType  force,
const std::string &  forceName,
const RGBAColor forceColor,
const RGBAColor forcePrimaryColor,
bool  includeInDialogs = true,
const DtString countryCode = "" 
)
virtual

Adds a new force DtForceType to the manager.

Replaces force if currently exists.

virtual void makVrf::DtVrfGuiForceManager::removeForce ( DtForceType  )
virtual

Removes force from system.

Reimplemented from makVrv::DtForceManager.

virtual DtForceManager::RGBAColor makVrf::DtVrfGuiForceManager::colorForForce ( DtForceType  force,
bool  usePrimaryColors = false 
) const
virtual

Color for a specified force.

Reimplemented from makVrv::DtForceManager.

virtual DtForceType makVrf::DtVrfGuiForceManager::newNextAvailableId ( ) const
virtual

Next available force that has no name associated with it.

Member Data Documentation

std::map<int, DtString> makVrf::DtVrfGuiForceManager::myCountryCodes
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)