28 #ifndef WINTERMUTE_BASE_OBJECT_H 29 #define WINTERMUTE_BASE_OBJECT_H 32 #include "engines/wintermute/base/base_script_holder.h" 33 #include "engines/wintermute/base/gfx/xmath.h" 34 #include "engines/wintermute/persistent.h" 35 #include "common/events.h" 36 #include "graphics/transform_struct.h" 43 class BaseScriptHolder;
52 virtual const char *getAccessCaption();
54 Graphics::TSpriteBlendMode _blendMode;
56 virtual bool renderModel();
58 virtual bool afterMove();
59 float _relativeRotate;
62 void setSoundEvent(
const char *eventName);
69 virtual bool isReady();
70 virtual bool getExtendedFlag(
const char *flagName);
71 virtual bool resetSoundPan();
72 virtual bool updateSounds();
74 bool _autoSoundPanning;
77 bool setSFXTime(uint32 time);
78 bool setSFXVolume(
int volume);
81 bool stopSFX(
bool deleteSound =
true);
82 bool playSFX(
const char *filename,
bool looping =
false,
bool playNow =
true,
const char *eventName =
nullptr, uint32 loopStart = 0);
91 virtual bool handleMouseWheel(int32 delta);
92 virtual bool handleMouse(TMouseEvent event, TMouseButton button);
93 virtual bool handleKeypress(
Common::Event *event,
bool printable =
false);
94 virtual int32 getHeight();
95 bool setCursor(
const char *filename);
96 bool setActiveCursor(
const char *filename);
98 const char *getCaption(
int caseVal = 1);
99 void setCaption(
const char *caption,
int caseVal = 1);
100 bool _editorSelected;
101 bool _editorAlwaysRegister;
105 virtual bool showCursor();
128 virtual bool update() {
129 return STATUS_FAILED;
131 virtual bool display() {
132 return STATUS_FAILED;
134 virtual bool invalidateDeviceObjects() {
137 virtual bool restoreDeviceObjects() {
140 bool _nonIntMouseEvents;
155 TShadowType _shadowType;
156 virtual uint32 getAnimTransitionTime(
const char *from,
const char *to) {
163 ScValue *scGetProperty(
const char *name)
override;
164 bool scSetProperty(
const char *name,
ScValue *value)
override;
166 const char *scToString()
override;
Definition: base_game.h:79
Definition: script_value.h:42
Definition: base_dynamic_buffer.h:35
Definition: script_stack.h:41
Definition: base_surface.h:37
Definition: base_script_holder.h:37
Definition: base_sound.h:39
Definition: base_sprite.h:40
Definition: base_object.h:49
Definition: achievements_tables.h:27