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;
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;
106 virtual bool showCursor();
129 virtual bool update() {
130 return STATUS_FAILED;
132 virtual bool display() {
133 return STATUS_FAILED;
135 virtual bool invalidateDeviceObjects() {
138 virtual bool restoreDeviceObjects() {
141 bool _nonIntMouseEvents;
156 TShadowType _shadowType;
158 virtual uint32 getAnimTransitionTime(
char *from,
char *to) {
166 bool scSetProperty(
const char *name,
ScValue *value)
override;
168 const char *scToString()
override;
Definition: base_game.h:75
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