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;
51 bool _autoSoundPanning;
53 bool setSFXTime(uint32 time);
54 bool setSFXVolume(
int volume);
57 bool stopSFX(
bool deleteSound =
true);
58 bool playSFX(
const char *filename,
bool looping =
false,
bool playNow =
true,
const char *eventName =
nullptr, uint32 loopStart = 0);
65 float _relativeRotate;
68 void setSoundEvent(
const char *eventName);
74 bool _editorAlwaysRegister;
81 Graphics::TSpriteBlendMode _blendMode;
83 virtual bool renderModel();
85 virtual bool afterMove();
88 virtual bool isReady();
89 virtual bool getExtendedFlag(
const char *flagName);
90 virtual bool resetSoundPan();
91 virtual bool updateSounds();
95 virtual bool handleMouseWheel(int32 delta);
96 virtual bool handleMouse(TMouseEvent event, TMouseButton button);
97 virtual bool handleKeypress(
Common::Event *event,
bool printable =
false);
98 virtual int32 getHeight();
99 bool setCursor(
const char *filename);
100 bool setActiveCursor(
const char *filename);
102 const char *getCaption(
int caseVal = 1);
103 void setCaption(
const char *caption,
int caseVal = 1);
109 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;
157 virtual uint32 getAnimTransitionTime(
char *from,
char *to) {
165 bool scSetProperty(
const char *name,
ScValue *value)
override;
167 const char *scToString()
override;
Definition: base_game.h:76
Definition: script_value.h:42
Definition: base_dynamic_buffer.h:35
Definition: script_stack.h:41
Definition: base_surface.h:38
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