aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/base/base_object.h
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-07-25 05:08:13 +0200
committerEinar Johan Trøan Sømåen2012-07-25 05:08:13 +0200
commit45c5eb5cab069ea9ca4302a637f4621d460c790d (patch)
treef2dbf36c0bb33dfcc0eb40cb47c66a981bccadad /engines/wintermute/base/base_object.h
parent28759d7aa3b3b6ef9e01a806fe277ca83d7ee30d (diff)
downloadscummvm-rg350-45c5eb5cab069ea9ca4302a637f4621d460c790d.tar.gz
scummvm-rg350-45c5eb5cab069ea9ca4302a637f4621d460c790d.tar.bz2
scummvm-rg350-45c5eb5cab069ea9ca4302a637f4621d460c790d.zip
WINTERMUTE: Privatize/Protect variables that don't need to be public.
Diffstat (limited to 'engines/wintermute/base/base_object.h')
-rw-r--r--engines/wintermute/base/base_object.h67
1 files changed, 35 insertions, 32 deletions
diff --git a/engines/wintermute/base/base_object.h b/engines/wintermute/base/base_object.h
index c05501b145..c1e3172a77 100644
--- a/engines/wintermute/base/base_object.h
+++ b/engines/wintermute/base/base_object.h
@@ -44,27 +44,9 @@ class ScValue;
class ScStack;
class ScScript;
class BaseObject : public BaseScriptHolder {
-public:
- TSpriteBlendMode _blendMode;
- virtual bool afterMove();
- float _relativeRotate;
- bool _rotateValid;
- float _rotate;
- void setSoundEvent(const char *eventName);
- bool _rotatable;
- uint32 _alphaColor;
- float _scale;
- float _scaleX;
- float _scaleY;
- float _relativeScale;
- virtual bool isReady();
- virtual bool getExtendedFlag(const char *flagName);
- virtual bool resetSoundPan();
- virtual bool updateSounds();
- bool updateOneSound(BaseSound *sound);
+protected:
bool _autoSoundPanning;
uint32 _sFXStart;
- int _sFXVolume;
bool setSFXTime(uint32 time);
bool setSFXVolume(int volume);
bool resumeSFX();
@@ -72,12 +54,37 @@ public:
bool stopSFX(bool deleteSound = true);
bool playSFX(const char *filename, bool looping = false, bool playNow = true, const char *eventName = NULL, uint32 loopStart = 0);
BaseSound *_sFX;
-
TSFXType _sFXType;
float _sFXParam1;
float _sFXParam2;
float _sFXParam3;
float _sFXParam4;
+ float _relativeRotate;
+ bool _rotateValid;
+ float _rotate;
+ void setSoundEvent(const char *eventName);
+ bool _rotatable;
+ float _scaleX;
+ float _scaleY;
+ float _relativeScale;
+ bool _editorSelected;
+ bool _editorAlwaysRegister;
+ bool _ready;
+ Rect32 _rect;
+ bool _rectSet;
+ int _iD;
+ char *_soundEvent;
+public:
+ TSpriteBlendMode _blendMode;
+ virtual bool afterMove();
+ float _scale;
+ uint32 _alphaColor;
+ virtual bool isReady();
+ virtual bool getExtendedFlag(const char *flagName);
+ virtual bool resetSoundPan();
+ virtual bool updateSounds();
+ bool updateOneSound(BaseSound *sound);
+ int _sFXVolume;
virtual bool handleMouseWheel(int delta);
virtual bool handleMouse(TMouseEvent event, TMouseButton button);
@@ -88,10 +95,10 @@ public:
bool cleanup();
const char *getCaption(int caseVal = 1);
void setCaption(const char *caption, int caseVal = 1);
- bool _editorSelected;
- bool _editorAlwaysRegister;
+
bool _editorOnly;
bool _is3D;
+
DECLARE_PERSISTENT(BaseObject, BaseScriptHolder)
virtual bool showCursor();
BaseSprite *_cursor;
@@ -99,22 +106,18 @@ public:
BaseSprite *_activeCursor;
virtual bool saveAsText(BaseDynamicBuffer *buffer, int indent);
virtual bool listen(BaseScriptHolder *param1, uint32 param2);
- bool _ready;
- bool _registrable;
+
+ bool _movable;
bool _zoomable;
bool _shadowable;
- Rect32 _rect;
- bool _rectSet;
- int _iD;
- bool _movable;
- BaseObject(BaseGame *inGame);
- virtual ~BaseObject();
- char *_caption[7];
- char *_soundEvent;
int _posY;
int _posX;
+ bool _registrable;
+ char *_caption[7];
bool _saveState;
+ BaseObject(BaseGame *inGame);
+ virtual ~BaseObject();
// base
virtual bool update() {
return STATUS_FAILED;