22 #ifndef MM1_MESSAGES_H 23 #define MM1_MESSAGES_H 25 #include "common/array.h" 26 #include "common/events.h" 27 #include "common/str.h" 28 #include "mm/mm1/metaengine.h" 36 ALIGN_LEFT, ALIGN_RIGHT, ALIGN_MIDDLE
45 _priorView(priorView) {}
50 KeybindingAction _action;
63 enum Button { MB_LEFT, MB_RIGHT, MB_MIDDLE };
69 Message(), _button(btn), _pos(pos) {}
94 _name(name), _value(-1) {}
96 _name(name), _value(value) {}
99 Message(), _name(name), _stringValue(strValue), _value(intValue) {}
111 TextAlign _align = ALIGN_LEFT;
119 TextAlign align = ALIGN_LEFT) :
127 typedef void (*YNCallback)();
131 YNCallback _callback =
nullptr;
132 YNCallback _nCallback =
nullptr;
133 KeyCallback _keyCallback =
nullptr;
134 bool _largeMessage =
false;
136 int _delaySeconds = 0;
137 bool _fontReduced =
false;
146 YNCallback yCallback, YNCallback nCallback =
nullptr);
148 YNCallback yCallback, YNCallback nCallback =
nullptr);
151 YNCallback ynCallback, YNCallback nCallback =
nullptr);
154 KeyCallback keyCallback);
156 KeyCallback keyCallback);
159 KeyCallback keyCallback);
167 TextAlign align = ALIGN_LEFT) :
171 InfoMessage(x1, y1, str1, x2, y2, str2) { _sound =
true; }
174 YNCallback nCallback =
nullptr);
176 YNCallback yCallback, YNCallback nCallback =
nullptr) :
177 InfoMessage(x, y, str, yCallback, nCallback) { _sound =
true; }
180 YNCallback yCallback, YNCallback nCallback =
nullptr) :
181 InfoMessage(x1, y1, str1, x2, y2, str2, yCallback, nCallback) { _sound =
true; }
185 KeyCallback keyCallback) :
186 InfoMessage(x, y, str, keyCallback) { _sound =
true; }
189 KeyCallback keyCallback) :
190 InfoMessage(x1, y1, str1, x2, y2, str2, keyCallback) { _sound =
true; }
194 LOC_TRAINING = 0, LOC_MARKET = 1, LOC_TEMPLE = 2,
195 LOC_BLACKSMITH = 3, LOC_TAVERN = 4
Definition: messages.h:62
Definition: messages.h:109
TextAlign
Definition: font.h:48
Definition: messages.h:79
EventType
Definition: events.h:49
Definition: messages.h:56
Definition: messages.h:49
Definition: messages.h:39
Definition: messages.h:72
Definition: detection.h:27
Definition: messages.h:48
Definition: messages.h:198
Definition: messages.h:129
Definition: messages.h:87
Definition: keyboard.h:294
Definition: messages.h:162
Definition: messages.h:41