aboutsummaryrefslogtreecommitdiff
path: root/engines/m4/mads_player.h
diff options
context:
space:
mode:
authorPaul Gilbert2010-07-03 11:50:42 +0000
committerPaul Gilbert2010-07-03 11:50:42 +0000
commit99939109d75816e434f51479bafdc48a987fb008 (patch)
tree6b555c7e6a60dff87348fbf6b8c4e215c708948a /engines/m4/mads_player.h
parent42dfdea5df648cbf1a7778ac8848d752d0f144bb (diff)
downloadscummvm-rg350-99939109d75816e434f51479bafdc48a987fb008.tar.gz
scummvm-rg350-99939109d75816e434f51479bafdc48a987fb008.tar.bz2
scummvm-rg350-99939109d75816e434f51479bafdc48a987fb008.zip
Adding the beginnings of a player control class, as well as various changes to the other classes to support it
svn-id: r50620
Diffstat (limited to 'engines/m4/mads_player.h')
-rw-r--r--engines/m4/mads_player.h66
1 files changed, 66 insertions, 0 deletions
diff --git a/engines/m4/mads_player.h b/engines/m4/mads_player.h
new file mode 100644
index 0000000000..c84c1d0c60
--- /dev/null
+++ b/engines/m4/mads_player.h
@@ -0,0 +1,66 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * $URL$
+ * $Id$
+ *
+ */
+
+#ifndef M4_MADS_PLAYER_H
+#define M4_MADS_PLAYER_H
+
+#include "common/scummsys.h"
+
+namespace M4 {
+
+#define PLAYER_SEQ_INDEX -2
+
+class MadsPlayer {
+private:
+ int getScale(int yp);
+ int getSpriteSlot();
+public:
+ char _spritesPrefix[16];
+ int _spriteSetCount;
+ int _spriteSetIndexes[8];
+ Common::Point _playerPos;
+ Common::Point _destPos;
+ int16 _direction, _direction2;
+ bool _visible, _priorVisible;
+ bool _visible3;
+ bool _forceRefresh;
+ int16 _currentScale;
+ int16 _yScale;
+ int16 _currentDepth;
+ int16 _spriteListIdx, _spriteListIdx2;
+ bool _spritesChanged;
+ int16 _frameOffset, _frameNum;
+ bool _moving;
+public:
+ MadsPlayer();
+
+ bool loadSprites(const char *prefix);
+ void update();
+ void idle();
+};
+
+} // End of namespace M4
+
+#endif