aboutsummaryrefslogtreecommitdiff
path: root/engines/prince/hero.h
diff options
context:
space:
mode:
authorKamil Zbróg2013-12-05 00:02:31 +0000
committerKamil Zbróg2013-12-05 00:02:31 +0000
commit8e772f936c43a68e4ae7c68b178bd9fa3a3e4f1f (patch)
tree0bf73c3bb86ecbf302db281a7963df1bdcd8749a /engines/prince/hero.h
parent69a58457744c662930f5f19b90d95d7647d580b2 (diff)
downloadscummvm-rg350-8e772f936c43a68e4ae7c68b178bd9fa3a3e4f1f.tar.gz
scummvm-rg350-8e772f936c43a68e4ae7c68b178bd9fa3a3e4f1f.tar.bz2
scummvm-rg350-8e772f936c43a68e4ae7c68b178bd9fa3a3e4f1f.zip
PRINCE: animation added
Diffstat (limited to 'engines/prince/hero.h')
-rw-r--r--engines/prince/hero.h27
1 files changed, 23 insertions, 4 deletions
diff --git a/engines/prince/hero.h b/engines/prince/hero.h
index e11a0f7395..77333d3643 100644
--- a/engines/prince/hero.h
+++ b/engines/prince/hero.h
@@ -24,9 +24,14 @@
#define PRINCE_HERO_H
#include "common/scummsys.h"
+#include "common/array.h"
+
+#include "graphics/surface.h"
namespace Prince {
+class Animation;
+
class Hero {
public:
enum State {
@@ -42,14 +47,28 @@ public:
DMOVE = 9
};
+ enum Direction {
+ LEFT = 1,
+ RIGHT = 2,
+ UP = 3,
+ DOWN = 4
+ };
+
Hero();
-private:
+ bool loadAnimSet(uint32 heroAnimNumber);
+
+ const Graphics::Surface * getSurface();
+
+ void setPos(int16 x, int16 y) { _middleX = x; _middleX = y; }
+ void setVisible(bool flag) { _visible = flag; }
+
+//private:
uint16 _number;
uint16 _visible;
State _state;
- uint16 _middleX;
- uint16 _middleY;
+ int16 _middleX;
+ int16 _middleY;
// Coords array of coordinates
// DirTab array of directions
@@ -74,7 +93,7 @@ private:
// Font subtitiles font
// Color subtitiles color
// AnimSet number of animation set
- // MoveAnims MoveSet
+ Common::Array<Animation *> _moveSet; // MoveAnims MoveSet
// TurnAnim ??
uint32 _moveDelay;