22 #ifndef ULTIMA_SHARED_EARLY_GAME_BASE_H 23 #define ULTIMA_SHARED_EARLY_GAME_BASE_H 25 #include "common/scummsys.h" 26 #include "common/array.h" 27 #include "common/serializer.h" 28 #include "ultima/shared/engine/events.h" 29 #include "ultima/shared/engine/input_handler.h" 30 #include "ultima/shared/engine/input_translator.h" 59 int getSavegameSlot();
61 void leftButtonDoubleClick(
const Point &mousePos)
override;
62 void middleButtonDoubleClick(
const Point &mousePos)
override;
63 void rightButtonDoubleClick(
const Point &mousePos);
68 bool isMouseControlEnabled()
const {
return true; }
72 uint32 _priorLeftDownTime;
73 uint32 _priorMiddleDownTime;
74 uint32 _priorRightDownTime;
97 void onIdle()
override;
99 void mouseMove(
const Point &mousePos)
override;
100 void leftButtonDown(
const Point &mousePos)
override;
101 void leftButtonUp(
const Point &mousePos)
override;
102 void middleButtonDown(
const Point &mousePos)
override;
103 void middleButtonUp(
const Point &mousePos)
override;
104 void rightButtonDown(
const Point &mousePos)
override;
105 void rightButtonUp(
const Point &mousePos)
override;
106 void mouseWheel(
const Point &mousePos,
bool wheelUp)
override;
117 virtual bool isVGA()
const {
return false; }
167 uint getRandomNumber(uint max);
172 uint getRandomNumber(uint min, uint max);
177 void sleep(uint time);
182 uint32 getMillis()
const;
Definition: tree_item.h:50
virtual Maps::Map * getMap() const
Definition: game_base.h:162
virtual bool canLoadGameStateCurrently()
Definition: game_base.h:187
Gfx::VisualItem * getView() const
Definition: game_base.h:147
Definition: visual_item.h:39
virtual bool canSaveGameStateCurrently()
Definition: game_base.h:192
Definition: serializer.h:79
Definition: detection.h:27
virtual void starting(bool isLoading)
Definition: game_base.h:112
Definition: game_base.h:53
Definition: text_cursor.h:35
Gfx::Font * getFont() const
Definition: game_base.h:157
Definition: keyboard.h:294
virtual bool isVGA() const
Definition: game_base.h:117