aboutsummaryrefslogtreecommitdiff
path: root/engines/prince/hero.h
diff options
context:
space:
mode:
authorlukaslw2014-05-11 13:57:52 +0200
committerlukaslw2014-06-22 20:08:01 +0200
commitbe565bf4f025fc64bd2cbc986fee111869cbd38a (patch)
tree100a5a224d336df7e3987764fe7151723364b733 /engines/prince/hero.h
parent6463c04b93d59f1e993848bde7cd7b8aa77d2b50 (diff)
downloadscummvm-rg350-be565bf4f025fc64bd2cbc986fee111869cbd38a.tar.gz
scummvm-rg350-be565bf4f025fc64bd2cbc986fee111869cbd38a.tar.bz2
scummvm-rg350-be565bf4f025fc64bd2cbc986fee111869cbd38a.zip
PRINCE: hero's shadow drawing progress
Diffstat (limited to 'engines/prince/hero.h')
-rw-r--r--engines/prince/hero.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/engines/prince/hero.h b/engines/prince/hero.h
index 6640bcf3df..76ca51a43a 100644
--- a/engines/prince/hero.h
+++ b/engines/prince/hero.h
@@ -34,6 +34,7 @@ namespace Prince {
class Animation;
class PrinceEngine;
+class GraphicsMan;
class Hero {
public:
@@ -44,8 +45,9 @@ public:
static const int16 kZoomBitmapWidth = kMaxPicWidth / kZoomStep;
static const int16 kNormalWidth = 640;
static const int16 kShadowLineArraySize = 2 * 1280 * 4;
+ static const int16 kShadowBitmapSize = kMaxPicWidth * kMaxPicHeight / 8;
- static const uint8 kShadowColor = 191;
+ static const byte kShadowColor = 191;
enum State {
STAY = 0,
@@ -96,7 +98,7 @@ public:
Move_BORED2
};
- Hero(PrinceEngine *vm);
+ Hero(PrinceEngine *vm, GraphicsMan *graph);
~Hero();
Common::RandomSource _randomSource;
bool loadAnimSet(uint32 heroAnimNumber);
@@ -119,13 +121,15 @@ public:
void showHeroAnimFrame();
void line(int x1, int y1, int x2, int y2);
void plotPoint(int x, int y);
- Graphics::Surface *showHeroShadow(Graphics::Surface *heroFrame);
+ //Graphics::Surface *showHeroShadow();
+ void showHeroShadow();
void setShadowScale(int32 shadowScale);
void specialAnim();
void getState();
//private:
PrinceEngine *_vm;
+ GraphicsMan *_graph;
uint16 _number;
uint16 _visible;
int16 _state;
@@ -143,7 +147,9 @@ public:
int32 _shadZoomFactor;
int32 _shadScaleValue;
int32 _shadowLineLen;
-
+ int16 _shadowDrawX;
+ int16 _shadowDrawY;
+ int16 _shadLastY;
// Coords array of coordinates
// DirTab array of directions