OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CSMWorld::InfoSelectWrapper Class Reference

#include <infoselectwrapper.hpp>

Inheritance diagram for CSMWorld::InfoSelectWrapper:
Collaboration diagram for CSMWorld::InfoSelectWrapper:

Public Member Functions

 InfoSelectWrapper (ESM::DialInfo::SelectStruct &select)
 
void setFunctionName (FunctionName name)
 
void setRelationType (RelationType type)
 
void setVariableName (const std::string &name)
 
void update ()
 
void setDefaults ()
 
ESM::VariantgetVariant ()
 
- Public Member Functions inherited from CSMWorld::ConstInfoSelectWrapper
 ConstInfoSelectWrapper (const ESM::DialInfo::SelectStruct &select)
 
FunctionName getFunctionName () const
 
RelationType getRelationType () const
 
ComparisonType getComparisonType () const
 
bool hasVariable () const
 
const std::string & getVariableName () const
 
bool conditionIsAlwaysTrue () const
 
bool conditionIsNeverTrue () const
 
bool variantTypeIsValid () const
 
const ESM::VariantgetVariant () const
 
std::string toString () const
 
template<typename T1 , typename T2 >
bool rangeContains (T1 value, std::pair< T2, T2 > range) const
 
template<typename T1 , typename T2 >
bool rangeFullyContains (std::pair< T1, T1 > containingRange, std::pair< T2, T2 > testRange) const
 
template<typename T1 , typename T2 >
bool rangesOverlap (std::pair< T1, T1 > range1, std::pair< T2, T2 > range2) const
 
template<typename T1 , typename T2 >
bool rangesMatch (std::pair< T1, T1 > range1, std::pair< T2, T2 > range2) const
 
template<typename T1 , typename T2 >
bool conditionIsAlwaysTrue (std::pair< T1, T1 > conditionRange, std::pair< T2, T2 > validRange) const
 
template<typename T1 , typename T2 >
bool conditionIsNeverTrue (std::pair< T1, T1 > conditionRange, std::pair< T2, T2 > validRange) const
 

Private Member Functions

void writeRule ()
 

Private Attributes

ESM::DialInfo::SelectStructmSelect
 

Additional Inherited Members

- Public Types inherited from CSMWorld::ConstInfoSelectWrapper
enum  FunctionName {
  Function_RankLow =0, Function_RankHigh, Function_RankRequirement, Function_Reputation,
  Function_Health_Percent, Function_PcReputation, Function_PcLevel, Function_PcHealthPercent,
  Function_PcMagicka, Function_PcFatigue, Function_PcStrength, Function_PcBlock,
  Function_PcArmorer, Function_PcMediumArmor, Function_PcHeavyArmor, Function_PcBluntWeapon,
  Function_PcLongBlade, Function_PcAxe, Function_PcSpear, Function_PcAthletics,
  Function_PcEnchant, Function_PcDestruction, Function_PcAlteration, Function_PcIllusion,
  Function_PcConjuration, Function_PcMysticism, Function_PcRestoration, Function_PcAlchemy,
  Function_PcUnarmored, Function_PcSecurity, Function_PcSneak, Function_PcAcrobatics,
  Function_PcLightArmor, Function_PcShortBlade, Function_PcMarksman, Function_PcMerchantile,
  Function_PcSpeechcraft, Function_PcHandToHand, Function_PcGender, Function_PcExpelled,
  Function_PcCommonDisease, Function_PcBlightDisease, Function_PcClothingModifier, Function_PcCrimeLevel,
  Function_SameSex, Function_SameRace, Function_SameFaction, Function_FactionRankDifference,
  Function_Detected, Function_Alarmed, Function_Choice, Function_PcIntelligence,
  Function_PcWillpower, Function_PcAgility, Function_PcSpeed, Function_PcEndurance,
  Function_PcPersonality, Function_PcLuck, Function_PcCorpus, Function_Weather,
  Function_PcVampire, Function_Level, Function_Attacked, Function_TalkedToPc,
  Function_PcHealth, Function_CreatureTarget, Function_FriendHit, Function_Fight,
  Function_Hello, Function_Alarm, Function_Flee, Function_ShouldAttack,
  Function_Werewolf, Function_PcWerewolfKills =73, Function_Global, Function_Local,
  Function_Journal, Function_Item, Function_Dead, Function_NotId,
  Function_NotFaction, Function_NotClass, Function_NotRace, Function_NotCell,
  Function_NotLocal, Function_None
}
 
enum  RelationType {
  Relation_Equal, Relation_NotEqual, Relation_Greater, Relation_GreaterOrEqual,
  Relation_Less, Relation_LessOrEqual, Relation_None
}
 
enum  ComparisonType { Comparison_Boolean, Comparison_Integer, Comparison_Numeric, Comparison_None }
 
- Static Public Member Functions inherited from CSMWorld::ConstInfoSelectWrapper
static std::string convertToString (FunctionName name)
 
static std::string convertToString (RelationType type)
 
static std::string convertToString (ComparisonType type)
 
- Static Public Attributes inherited from CSMWorld::ConstInfoSelectWrapper
static const size_t RuleMinSize = 5
 
static const size_t FunctionPrefixOffset = 1
 
static const size_t FunctionIndexOffset = 2
 
static const size_t RelationIndexOffset = 4
 
static const size_t VarNameOffset = 5
 
static const char * FunctionEnumStrings []
 
static const char * RelationEnumStrings []
 
static const char * ComparisonEnumStrings []
 
- Protected Member Functions inherited from CSMWorld::ConstInfoSelectWrapper
void readRule ()
 
void readFunctionName ()
 
void readRelationType ()
 
void readVariableName ()
 
void updateHasVariable ()
 
void updateComparisonType ()
 
std::pair< int, intgetConditionIntRange () const
 
std::pair< float, float > getConditionFloatRange () const
 
std::pair< int, intgetValidIntRange () const
 
std::pair< float, float > getValidFloatRange () const
 
template<typename Type1 , typename Type2 >
bool rangeContains (Type1 value, std::pair< Type2, Type2 > range) const
 
template<typename Type1 , typename Type2 >
bool rangesOverlap (std::pair< Type1, Type1 > range1, std::pair< Type2, Type2 > range2) const
 
template<typename Type1 , typename Type2 >
bool rangeFullyContains (std::pair< Type1, Type1 > containing, std::pair< Type2, Type2 > test) const
 
template<typename Type1 , typename Type2 >
bool rangesMatch (std::pair< Type1, Type1 > range1, std::pair< Type2, Type2 > range2) const
 
template<typename Type1 , typename Type2 >
bool conditionIsAlwaysTrue (std::pair< Type1, Type1 > conditionRange, std::pair< Type2, Type2 > validRange) const
 
template<typename Type1 , typename Type2 >
bool conditionIsNeverTrue (std::pair< Type1, Type1 > conditionRange, std::pair< Type2, Type2 > validRange) const
 
- Protected Attributes inherited from CSMWorld::ConstInfoSelectWrapper
FunctionName mFunctionName
 
RelationType mRelationType
 
ComparisonType mComparisonType
 
bool mHasVariable
 
std::string mVariableName
 

Constructor & Destructor Documentation

CSMWorld::InfoSelectWrapper::InfoSelectWrapper ( ESM::DialInfo::SelectStruct select)

Member Function Documentation

ESM::Variant & CSMWorld::InfoSelectWrapper::getVariant ( )

Here is the caller graph for this function:

void CSMWorld::InfoSelectWrapper::setDefaults ( )
void CSMWorld::InfoSelectWrapper::setFunctionName ( FunctionName  name)

Here is the caller graph for this function:

void CSMWorld::InfoSelectWrapper::setRelationType ( RelationType  type)

Here is the caller graph for this function:

void CSMWorld::InfoSelectWrapper::setVariableName ( const std::string &  name)

Here is the caller graph for this function:

void CSMWorld::InfoSelectWrapper::update ( )

Here is the caller graph for this function:

void CSMWorld::InfoSelectWrapper::writeRule ( )
private

Member Data Documentation

ESM::DialInfo::SelectStruct& CSMWorld::InfoSelectWrapper::mSelect
private

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