22 #ifndef NANCY_ACTION_DATARECORDS_H 23 #define NANCY_ACTION_DATARECORDS_H 25 #include "engines/nancy/action/actionrecord.h" 38 void execute()
override;
40 CursorManager::CursorType getHoverCursor()
const override {
return (CursorManager::CursorType)_cursorType; }
41 bool cursorSetFromScript()
const override {
return true; }
44 Common::String getRecordTypeName()
const override {
return "TableIndexSetValueHS"; }
46 uint16 _tableIndex = 0;
47 byte _valueChangeType = kNoChangeTableValue;
48 int16 _entryCorrectFlagID = -1;
49 int16 _allEntriesCorrectFlagID = -1;
52 uint16 _cursorType = 1;
60 void execute()
override;
67 Common::String getRecordTypeName()
const override {
return "SetValue"; }
70 bool _shouldSet =
false;
71 int16 _value = kNoTableValue;
77 void execute()
override;
84 Common::String getRecordTypeName()
const override {
return "SetValueCombo"; }
94 void execute()
override;
97 return Common::String::format(
"Value %d. Test type %d, condition %d. Set flag %d", _valueIndex, _testType, _condition, _flagToSet);
101 Common::String getRecordTypeName()
const override {
return "ValueTest"; }
103 byte _valueIndex = 0;
108 int16 _flagToSet = kFlagNoLabel;
114 EventFlags(
bool terse =
false) : _isTerse(terse) {}
118 void execute()
override;
124 Common::String getRecordTypeName()
const override {
return _isTerse ?
"EventFlagsTerse" :
"EventFlags"; }
134 void execute()
override;
136 CursorManager::CursorType getHoverCursor()
const override;
137 bool cursorSetFromScript()
const override;
139 CursorManager::CursorType _hoverCursor = CursorManager::kHotspot;
144 bool canHaveHotspot()
const override {
return true; }
147 Common::String getRecordTypeName()
const override {
return _isCursor ? (_isTerse ?
"EventFlagsHSTerse" :
"EventFlagsCursorHS") :
"EventFlagsMultiHS"; }
154 void execute()
override;
159 Common::String getRecordTypeName()
const override {
return "RandomizeEventFlags"; }
168 void execute()
override;
170 uint16 _difficulty = 0;
174 Common::String getRecordTypeName()
const override {
return "DifficultyLevel"; }
179 enum Type { kAdd, kDelete, kMark };
185 void execute()
override;
189 uint16 _surfaceID = 0;
192 uint16 _sceneID = kNoScene;
201 #endif // NANCY_ACTION_DATARECORDS_H Definition: commontypes.h:213
static String format(MSVC_PRINTF const char *fmt,...) GCC_PRINTF(1
Definition: datarecords.h:35
Definition: datarecords.h:74
Definition: datarecords.h:165
Definition: datarecords.h:151
Definition: datarecords.h:91
Definition: datarecords.h:177
Definition: datarecords.h:112
Definition: actionrecord.h:98
Definition: datarecords.h:57
Definition: commontypes.h:180
Definition: actionmanager.h:32
Definition: datarecords.h:128