22 #ifndef ASYLUM_PUZZLES_PUZZLE_H 23 #define ASYLUM_PUZZLES_PUZZLE_H 25 #include "common/rect.h" 26 #include "common/serializer.h" 28 #include "asylum/eventhandler.h" 29 #include "asylum/shared.h" 38 class GraphicResource;
39 struct GraphicQueueItem;
59 virtual void updateScreen() {};
60 virtual void updateCursor() {};
61 virtual bool activate(
const AsylumEvent &evt) {
return true; }
62 virtual bool mouseLeftUp(
const AsylumEvent &evt) {
return true; }
63 virtual bool mouseLeftDown(
const AsylumEvent &evt) {
return true; }
65 virtual bool exitPuzzle() = 0;
70 bool hitTest(
const int16 (*polygonPoint)[2],
const Common::Point &point, uint32 index)
const;
71 bool hitTest(
const int16 (*polygonPoint)[2],
const Common::Point &point)
const;
76 #endif // ASYLUM_PUZZLES_PUZZLE_H
Definition: atari-screen.h:60
Definition: serializer.h:79
Definition: eventhandler.h:43
Definition: atari-cursor.h:38
Definition: eventhandler.h:61
Definition: serializer.h:308