X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2FBattleState.h;h=3acc0b7699c79dd9ffeaef66c686d263c2a4d29e;hb=c0068263474818f39e704eee12f753c0419f7708;hp=40dd51d9f671d8b79fb8a9c63d72d2586ad62c14;hpb=854e5229c3f30bf88aa08d7f0aff56a1411c3367;p=l2e.git diff --git a/src/battle/BattleState.h b/src/battle/BattleState.h index 40dd51d..3acc0b7 100644 --- a/src/battle/BattleState.h +++ b/src/battle/BattleState.h @@ -118,14 +118,23 @@ public: void SetRunaway() { ranAway = true; } void ClearAllAttacks(); + struct Order { + Order(int index, bool isMonster) + : index(index), isMonster(isMonster) { } + int index; + bool isMonster; + }; + + void WriteOrder(std::vector &); + public: geometry::Vector CalculateScreenOffset(SDL_Surface *screen) const { return geometry::Vector( (screen->w - background->w) / 2, (screen->h - background->h) / 2); } - int BackgroundWidth() const { return background->w; } - int BackgroundHeight() const { return background->h; } + int Width() const { return background->w; } + int Height() const { return background->h; } void RenderBackground(SDL_Surface *screen, const geometry::Vector &offset); void RenderMonsters(SDL_Surface *screen, const geometry::Vector &offset);