1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-01 23:12:49 +02:00

Patch from Yupsi. Hero sleep/wake-up. Fixes #162 and #601.

This commit is contained in:
Frank Zago
2011-09-24 16:46:23 +00:00
parent 6dd9d416b4
commit 01566fcde1
5 changed files with 101 additions and 15 deletions

View File

@@ -233,9 +233,13 @@ public:
void mouseMoved (const SDL_MouseMotionEvent & sEvent);
bool isActive();
bool isHeroSleeping(const CGHeroInstance *hero);
void setHeroSleeping(const CGHeroInstance *hero, bool sleep);
void setPlayer(int Player);
void startHotSeatWait(int Player);
void startTurn();
void endingTurn();
void tileLClicked(const int3 &mp);
void tileHovered(const int3 &tile);
void tileRClicked(const int3 &mp);
@@ -244,6 +248,7 @@ public:
const CGHeroInstance * curHero() const;
const CGTownInstance * curTown() const;
const IShipyard * ourInaccessibleShipyard(const CGObjectInstance *obj) const; //checks if obj is our ashipyard and cursor is 0,0 -> returns shipyard or NULL else
void updateSleepWake(const CGHeroInstance *h); //button update
};
extern CAdvMapInt *adventureInt;