![]() |
VR-Forces 4.0.4 Class Documentation
|
This class will maintain force information used in visualizers that need force dependent data (such as force color) More...

Classes | |
| struct | ForceInfo |
| struct | RGBAColor |
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) |
Static Public Member Functions | |
| static std::string | className () |
Protected Member Functions | |
| virtual const ForceInfo & | forceInformation (DtForceType force) const |
| virtual ForceInfo & | forceInformation (DtForceType force) |
Protected Attributes | |
| ForceInfo | myNullForce |
| std::map< DtForceType, ForceInfo > | myForces |
This class will maintain force information used in visualizers that need force dependent data (such as force color)
CTOR.
| virtual makVrv::DtForceManager::~DtForceManager | ( | ) | [virtual] |
DTOR.
| static std::string makVrv::DtForceManager::className | ( | ) | [static] |
| virtual void makVrv::DtForceManager::addForce | ( | DtForceType | force, |
| const std::string & | forceName, | ||
| const RGBAColor & | forceColor, | ||
| const RGBAColor & | forcePrimaryColor, | ||
| bool | includeInDialogs = true |
||
| ) | [virtual] |
Adds a new force DtForceType to the manager.
Replaces force if currently exists.
| virtual DtForceType makVrv::DtForceManager::nextAvailableId | ( | ) | [virtual] |
Get first available Id (starting at 1)
| virtual void makVrv::DtForceManager::removeForce | ( | DtForceType | ) | [virtual] |
Removes force from system.
| virtual int makVrv::DtForceManager::numForces | ( | ) | const [virtual] |
Number of forces in the force list.
| virtual DtForceType makVrv::DtForceManager::forceAt | ( | int | iIndex | ) | const [virtual] |
Force Type for a specific index.
| virtual RGBAColor makVrv::DtForceManager::colorForForce | ( | DtForceType | force, |
| bool | usePrimaryColors = false |
||
| ) | const [virtual] |
Color for a specified force.
| virtual std::string makVrv::DtForceManager::nameForForce | ( | DtForceType | force | ) | const [virtual] |
Name for a specified force.
| virtual DtForceType makVrv::DtForceManager::forceFromName | ( | const std::string & | name | ) | const [virtual] |
Force Type for a specific force name.
| virtual bool makVrv::DtForceManager::includeInDialogs | ( | DtForceType | force | ) | const [virtual] |
Whether the force is included in VRF dialogs.
| virtual void makVrv::DtForceManager::setHostility | ( | DtU8 | force, |
| DtU8 | targetForce, | ||
| bool | hostile | ||
| ) | [virtual] |
| virtual bool makVrv::DtForceManager::hostile | ( | DtU8 | force, |
| DtU8 | targetForce | ||
| ) | [virtual] |
| virtual void makVrv::DtForceManager::clearForces | ( | ) | [virtual] |
Clear hash list of forces.
| virtual const ForceInfo& makVrv::DtForceManager::forceInformation | ( | DtForceType | force | ) | const [protected, virtual] |
| virtual ForceInfo& makVrv::DtForceManager::forceInformation | ( | DtForceType | force | ) | [protected, virtual] |
ForceInfo makVrv::DtForceManager::myNullForce [protected] |
std::map<DtForceType, ForceInfo> makVrv::DtForceManager::myForces [protected] |