2012-11-08 15:49:38 +00:00
|
|
|
#ifndef GAME_MWDIALOGUE_SELECTWRAPPER_H
|
|
|
|
#define GAME_MWDIALOGUE_SELECTWRAPPER_H
|
|
|
|
|
|
|
|
#include <components/esm/loadinfo.hpp>
|
|
|
|
|
|
|
|
namespace MWDialogue
|
|
|
|
{
|
|
|
|
class SelectWrapper
|
|
|
|
{
|
|
|
|
const ESM::DialInfo::SelectStruct& mSelect;
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
enum Function
|
|
|
|
{
|
2012-11-08 20:16:49 +00:00
|
|
|
Function_None,
|
|
|
|
Function_Journal,
|
2012-11-08 20:48:17 +00:00
|
|
|
Function_Item,
|
|
|
|
Function_Dead,
|
|
|
|
Function_Id,
|
|
|
|
Function_Faction,
|
|
|
|
Function_Class,
|
|
|
|
Function_Race,
|
|
|
|
Function_Cell
|
2012-11-08 15:49:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
enum Type
|
|
|
|
{
|
|
|
|
Type_None,
|
|
|
|
Type_Integer,
|
2012-11-08 16:04:44 +00:00
|
|
|
Type_Numeric,
|
|
|
|
Type_Boolean
|
2012-11-08 15:49:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
SelectWrapper (const ESM::DialInfo::SelectStruct& select);
|
|
|
|
|
|
|
|
Function getFunction() const;
|
|
|
|
|
|
|
|
Type getType() const;
|
|
|
|
|
2012-11-08 20:48:17 +00:00
|
|
|
bool isInverted() const;
|
|
|
|
|
|
|
|
bool isNpcOnly() const;
|
|
|
|
///< \attention Do not call any of the select functions for this select struct!
|
2012-11-08 16:01:26 +00:00
|
|
|
|
2012-11-08 15:49:38 +00:00
|
|
|
bool selectCompare (int value) const;
|
|
|
|
|
|
|
|
bool selectCompare (float value) const;
|
2012-11-08 16:04:44 +00:00
|
|
|
|
|
|
|
bool selectCompare (bool value) const;
|
2012-11-08 20:16:49 +00:00
|
|
|
|
|
|
|
std::string getName() const;
|
|
|
|
///< Return case-smashed name.
|
2012-11-08 15:49:38 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|