From 8e772f936c43a68e4ae7c68b178bd9fa3a3e4f1f Mon Sep 17 00:00:00 2001 From: Kamil Zbróg Date: Thu, 5 Dec 2013 00:02:31 +0000 Subject: PRINCE: animation added --- engines/prince/hero.h | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) (limited to 'engines/prince/hero.h') 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 _moveSet; // MoveAnims MoveSet // TurnAnim ?? uint32 _moveDelay; -- cgit v1.2.3