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"; }
77 int16 _value = kNoTableValue;
84 void execute()
override;
91 Common::String getRecordTypeName()
const override {
return "SetValueCombo"; }
101 void execute()
override;
104 return Common::String::format(
"Value %d. Test type %d, condition %d. Set flag %d", _valueIndex, _testType, _condition, _flagToSet);
108 Common::String getRecordTypeName()
const override {
return "ValueTest"; }
110 byte _valueIndex = 0;
115 int16 _flagToSet = kFlagNoLabel;
121 enum FlagsType { kEventFlags, kEventFlagsTerse };
123 EventFlags(FlagsType flagsType) : _flagsType(flagsType) {}
127 void execute()
override;
130 FlagsType _flagsType;
135 Common::String getRecordTypeName()
const override {
return _flagsType == kEventFlagsTerse ?
"EventFlagsTerse" :
"EventFlags"; }
141 enum HotspotType { kMultiHS, kCursorHS, kHSTerse };
144 EventFlags(hotspotType == kHSTerse ? kEventFlagsTerse : kEventFlags), _hotspotType(hotspotType) {}
148 void execute()
override;
150 CursorManager::CursorType getHoverCursor()
const override;
151 bool cursorSetFromScript()
const override;
153 CursorManager::CursorType _hoverCursor = CursorManager::kHotspot;
156 HotspotType _hotspotType;
158 bool canHaveHotspot()
const override {
return true; }
162 switch (_hotspotType) {
164 return "EventFlagsCursorHS";
166 return "EventFlagsHSTerse";
168 return "EventFlagsMultiHS";
177 void execute()
override;
182 Common::String getRecordTypeName()
const override {
return "RandomizeEventFlags"; }
191 void execute()
override;
193 uint16 _difficulty = 0;
197 Common::String getRecordTypeName()
const override {
return "DifficultyLevel"; }
202 enum Type { kAdd, kDelete, kMark };
208 void execute()
override;
212 uint16 _surfaceID = 0;
215 uint16 _sceneID = kNoScene;
224 #endif // NANCY_ACTION_DATARECORDS_H Definition: commontypes.h:235
static String format(MSVC_PRINTF const char *fmt,...) GCC_PRINTF(1
Definition: datarecords.h:35
Definition: datarecords.h:81
Definition: datarecords.h:188
Definition: datarecords.h:174
Definition: datarecords.h:98
Definition: datarecords.h:200
Definition: datarecords.h:119
Definition: actionrecord.h:107
Definition: datarecords.h:57
Definition: commontypes.h:201
Definition: actionmanager.h:32
Definition: datarecords.h:139