25 #include "common/array.h" 26 #include "common/hash-str.h" 27 #include "common/hashmap.h" 28 #include "common/ptr.h" 29 #include "common/rect.h" 30 #include "common/scummsys.h" 31 #include "common/stream.h" 67 bool _stringTableLoaded;
96 bool _allowInitialise;
103 void createRotated();
109 bool allowInitialise()
const {
110 return _allowInitialise;
112 void allowInitialise(
bool allow) {
113 _allowInitialise = allow;
116 void persistent(
bool persistent) {
117 _persistent = persistent;
119 bool persistent()
const {
123 void ignoreRegion(
bool ignoreRegion) {
124 _ignoreRegion = ignoreRegion;
126 bool ignoreRegion()
const {
127 return _ignoreRegion;
130 void readStringTable(
unsigned resOffset, uint16 resCount);
132 uint getStringTableSize()
const {
return _stringTable.
size(); }
141 _animation = animation;
149 _animationPos = animationPos;
153 _mouseCursor = mouseCursor;
164 return _rotatedPicture ? _rotatedPicture.
get() : _picture.
get();
167 void rotate(
int rot);
168 int rotation()
const {
172 void generateRegion();
176 _regionOffset = offset;
179 void setAlpha(
int alpha) {
184 _alpha = (100 - alpha) * 255 / 100;
205 void setClickHandler(uint ip) {
209 uint getClickHandler()
const {
210 return _clickHandler;
213 void setExamineHandler(uint ip) {
214 _examineHandler = ip;
217 uint getExamineHandler()
const {
218 return _examineHandler;
222 _useHandlers[name] = ip;
226 return _useHandlers.getValOrDefault(name, 0);
229 void setUserUseHandler(uint ip) {
230 _userUseHandler = ip;
233 void setThrowHandler(uint ip) {
237 void setUseOnHandler(uint ip) {
241 uint getUserUseHandler()
const {
242 return _userUseHandler;
245 void setHandlerBD(uint ip) {
249 uint getHandlerBD()
const {
253 void setHandlerC1(uint ip) {
257 uint getHandlerC1()
const {
261 void setTrapHandler(uint ip,
RegionPtr region) {
263 _trapRegion = region;
266 RegionPtr getTrapRegion()
const {
return _trapRegion; }
268 uint getTrapHandler()
const {
return _trapHandler; }
299 return _pos - _offset;
309 _keyHandlers[name] = ip;
313 KeyHandlersType::const_iterator i = _keyHandlers.find(name);
314 return i != _keyHandlers.end() ? i->_value : 0;
317 uint throwHandler()
const {
318 return _throwHandler;
321 uint useOnHandler()
const {
322 return _useOnHandler;
325 bool locked()
const {
331 bool alive()
const {
return _alive; }
333 void alive(
bool value);
335 void srcRect(
Common::Rect srcRect) { _srcRect = srcRect; }
Definition: managed_surface.h:51
Graphics::Surface * scale(const Graphics::Surface &srcImage, int xSize, int ySize)
Definition: formatinfo.h:28
size_type size() const
Definition: array.h:316
PointerType get() const
Definition: ptr.h:636