|
|
@ -18,39 +18,39 @@ namespace MWDialogue
|
|
|
|
MWWorld::Ptr mActor;
|
|
|
|
MWWorld::Ptr mActor;
|
|
|
|
int mChoice;
|
|
|
|
int mChoice;
|
|
|
|
bool mTalkedToPlayer;
|
|
|
|
bool mTalkedToPlayer;
|
|
|
|
|
|
|
|
|
|
|
|
bool testActor (const ESM::DialInfo& info) const;
|
|
|
|
bool testActor (const ESM::DialInfo& info) const;
|
|
|
|
///< Is this the right actor for this \a info?
|
|
|
|
///< Is this the right actor for this \a info?
|
|
|
|
|
|
|
|
|
|
|
|
bool testPlayer (const ESM::DialInfo& info) const;
|
|
|
|
bool testPlayer (const ESM::DialInfo& info) const;
|
|
|
|
///< Do the player and the cell the player is currently in match \a info?
|
|
|
|
///< Do the player and the cell the player is currently in match \a info?
|
|
|
|
|
|
|
|
|
|
|
|
bool testSelectStructs (const ESM::DialInfo& info) const;
|
|
|
|
bool testSelectStructs (const ESM::DialInfo& info) const;
|
|
|
|
///< Are all select structs matching?
|
|
|
|
///< Are all select structs matching?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool testDisposition (const ESM::DialInfo& info) const;
|
|
|
|
|
|
|
|
///< Is the actor disposition toward the player high enough?
|
|
|
|
|
|
|
|
|
|
|
|
bool testSelectStruct (const SelectWrapper& select) const;
|
|
|
|
bool testSelectStruct (const SelectWrapper& select) const;
|
|
|
|
|
|
|
|
|
|
|
|
bool testSelectStructNumeric (const SelectWrapper& select) const;
|
|
|
|
bool testSelectStructNumeric (const SelectWrapper& select) const;
|
|
|
|
|
|
|
|
|
|
|
|
int getSelectStructInteger (const SelectWrapper& select) const;
|
|
|
|
int getSelectStructInteger (const SelectWrapper& select) const;
|
|
|
|
|
|
|
|
|
|
|
|
bool getSelectStructBoolean (const SelectWrapper& select) const;
|
|
|
|
bool getSelectStructBoolean (const SelectWrapper& select) const;
|
|
|
|
|
|
|
|
|
|
|
|
int getFactionRank (const MWWorld::Ptr& actor, const std::string& factionId) const;
|
|
|
|
int getFactionRank (const MWWorld::Ptr& actor, const std::string& factionId) const;
|
|
|
|
|
|
|
|
|
|
|
|
bool hasFactionRankSkillRequirements (const MWWorld::Ptr& actor, const std::string& factionId,
|
|
|
|
bool hasFactionRankSkillRequirements (const MWWorld::Ptr& actor, const std::string& factionId,
|
|
|
|
int rank) const;
|
|
|
|
int rank) const;
|
|
|
|
|
|
|
|
|
|
|
|
bool hasFactionRankReputationRequirements (const MWWorld::Ptr& actor, const std::string& factionId,
|
|
|
|
bool hasFactionRankReputationRequirements (const MWWorld::Ptr& actor, const std::string& factionId,
|
|
|
|
int rank) const;
|
|
|
|
int rank) const;
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
|
|
Filter (const MWWorld::Ptr& actor, int choice, bool talkedToPlayer);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool operator() (const ESM::DialInfo& info) const;
|
|
|
|
Filter (const MWWorld::Ptr& actor, int choice, bool talkedToPlayer);
|
|
|
|
///< \return does the dialogue match?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const ESM::DialInfo *search (const ESM::Dialogue& dialogue) const;
|
|
|
|
const ESM::DialInfo *search (const ESM::Dialogue& dialogue) const;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|