diff options
author | lukaslw | 2014-08-04 08:55:20 +0200 |
---|---|---|
committer | lukaslw | 2014-08-04 08:55:20 +0200 |
commit | 85f4c2ccd2079b75c3c2d18b5b6ced7c37b14746 (patch) | |
tree | 8a7ef66cf04e83b8448b8bc97334d0eebd74954c /engines/prince/hero.h | |
parent | 161f21352f7a0f35562e9955373aa04b8cfb16a4 (diff) | |
download | scummvm-rg350-85f4c2ccd2079b75c3c2d18b5b6ced7c37b14746.tar.gz scummvm-rg350-85f4c2ccd2079b75c3c2d18b5b6ced7c37b14746.tar.bz2 scummvm-rg350-85f4c2ccd2079b75c3c2d18b5b6ced7c37b14746.zip |
PRINCE: showHeroShadow - update
Diffstat (limited to 'engines/prince/hero.h')
-rw-r--r-- | engines/prince/hero.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/engines/prince/hero.h b/engines/prince/hero.h index 00c47e1dc4..2e838cc9b3 100644 --- a/engines/prince/hero.h +++ b/engines/prince/hero.h @@ -36,6 +36,7 @@ class Animation; class PrinceEngine; class GraphicsMan; struct InventoryItem; +struct DrawNode; class Hero { public: @@ -43,6 +44,7 @@ public: static const int16 kShadowLineArraySize = 2 * 1280 * 4; static const int16 kStepLeftRight = 8; static const int16 kStepUpDown = 4; + static const int16 kHeroShadowZ = 2; enum State { kHeroStateStay, @@ -124,14 +126,11 @@ public: Graphics::Surface *zoomSprite(Graphics::Surface *heroFrame); void line(int x1, int y1, int x2, int y2); void plotPoint(int x, int y); - void showHeroShadow(Graphics::Surface *heroFrame); + static void showHeroShadow(Graphics::Surface *screen, DrawNode *drawNode); + void drawHeroShadow(Graphics::Surface *heroFrame); void setShadowScale(int32 shadowScale); void freeOldMove(); void freeHeroAnim(); - -//private: - PrinceEngine *_vm; - GraphicsMan *_graph; uint16 _number; uint16 _visible; @@ -186,6 +185,10 @@ public: uint32 _moveDelay; uint32 _shadMinus; + +private: + PrinceEngine *_vm; + GraphicsMan *_graph; }; } // End of namespace Prince |