X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmenu%2FPartyMenu.h;h=91c25ba549d14a92fdbd3250cce4b3d5722f7c48;hb=6a954cc1f6324d61282e21ec0d7dee6e6265f44f;hp=a55b2c13f81fadeaf8071e832b4edffb5c950fdf;hpb=bba1ac05e8c1854dc61bd737d228d9bc18bbb6ad;p=l2e.git diff --git a/src/menu/PartyMenu.h b/src/menu/PartyMenu.h index a55b2c1..91c25ba 100644 --- a/src/menu/PartyMenu.h +++ b/src/menu/PartyMenu.h @@ -35,16 +35,20 @@ public: Resources &Res(); const Resources &Res() const; + int Width() const; + int Height() const; + public: void RenderBackground(SDL_Surface *screen) const; void RenderHeros(SDL_Surface *screen, const geometry::Vector &offset) const; void RenderMenu(SDL_Surface *screen, const geometry::Vector &offset) const; void RenderInfo(SDL_Surface *screen, const geometry::Vector &offset) const; - geometry::Vector StatusOffset() const; + geometry::Vector StatusOffset(int index) const; const HeroStatus &GetHeroStatus(int index) const { return status[index]; } - static void OnStatusSelect(PartyMenu *, int); + static void OnStatusSelect(void *, int); + static void OnSpellSelect(void *, int); private: virtual void OnEnterState(SDL_Surface *screen); @@ -68,6 +72,7 @@ private: private: HeroStatus status[4]; + geometry::Vector statusPositions[4]; common::GameConfig *game; graphics::Menu mainMenu;