This class will maintain force information used in visualizers that need force dependent data (such as force color)
More...
Public Member Functions |
| | DtForceManager (DtSharedSettingsManager &manager) |
| | CTOR.
|
| virtual | ~DtForceManager () |
| | DTOR.
|
| 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.
|
| virtual DtForceType | nextAvailableId () |
| | Get first available Id (starting at 1)
|
| virtual void | removeForce (DtForceType) |
| | Removes force from system.
|
| virtual int | numForces () const |
| | Number of forces in the force list.
|
| virtual DtForceType | forceAt (int iIndex) const |
| | Force Type for a specific index.
|
| virtual RGBAColor | colorForForce (DtForceType force, bool usePrimaryColors=false) const |
| | Color for a specified force.
|
| virtual std::string | nameForForce (DtForceType force) const |
| | Name for a specified force.
|
| virtual DtForceType | forceFromName (const std::string &name) const |
| | Force Type for a specific force name.
|
| virtual bool | includeInDialogs (DtForceType force) const |
| | Whether the force is included in VRF dialogs.
|
| virtual void | clearForces () |
| | Clear hash list of forces.
|
|
| virtual void | setHostility (DtU8 force, DtU8 targetForce, bool hostile) |
| virtual bool | hostile (DtU8 force, DtU8 targetForce) |
| | DtSharedSettings (const DtSharedSettingsManager &manager) |
| | CTOR.
|
| virtual | ~DtSharedSettings () |
| | DTOR.
|
| boost::shared_mutex & | mutex () |
| | Get the mutex for the settings object.
|
| SafetyKey | safeToEmitSignals () |
| | Create a safety key for the function, see above example.
|
| void | setCurrentWriteLock (boost::unique_lock< boost::shared_mutex > *currentWriteLock) |
| | No need to call, set by the DtWriteSettingLock object.
|
| virtual const DtSettingsBackup * | settingsBackup () const |
| | Accessor for the settings backup (const).
|
| virtual DtSettingsBackup * | settingsBackup () |
| | Accessor for the settings backup.
|
| virtual void | backup () |
| | Called to back up the settings.
|
| | DtVirtualBaseClass () |
| | Do nothing constructor.
|
| virtual | ~DtVirtualBaseClass () |
| | Virtual do nothing destructor.
|
This class will maintain force information used in visualizers that need force dependent data (such as force color)