X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2FBattleState.h;h=e002b7c026d8c33816d5bfadf5f213b9606fadf3;hb=fc8a43f3745e7f3808e29b90a2fa9a958ecaf29b;hp=27953cd013cd5e050aa9d2bded9a20eeb78856f8;hpb=0542849dfccfec1ce1477265fa0fee2401a8fb23;p=l2e.git diff --git a/src/battle/BattleState.h b/src/battle/BattleState.h index 27953cd..e002b7c 100644 --- a/src/battle/BattleState.h +++ b/src/battle/BattleState.h @@ -8,6 +8,7 @@ #ifndef BATTLE_BATTLESTATE_H_ #define BATTLE_BATTLESTATE_H_ +#include "fwd.h" #include "AttackTypeMenu.h" #include "Hero.h" #include "HeroTag.h" @@ -15,34 +16,21 @@ #include "MoveMenu.h" #include "Resources.h" #include "SmallHeroTag.h" +#include "../app/fwd.h" #include "../app/State.h" +#include "../common/fwd.h" +#include "../common/Stats.h" #include "../geometry/Vector.h" #include "../graphics/Animation.h" +#include "../graphics/fwd.h" #include "../graphics/Menu.h" #include #include #include -namespace app { class Input; } -namespace common { - class Inventory; - class Item; - class Spell; -} -namespace graphics { - class Font; - class Frame; - class Gauge; - class Sprite; -} - namespace battle { -class AttackChoice; -class PartyLayout; -class Stats; - class BattleState : public app::State { @@ -139,6 +127,7 @@ public: } int Width() const { return background->w; } int Height() const { return background->h; } + geometry::Vector Size() const { return geometry::Vector(Width(), Height()); } void RenderBackground(SDL_Surface *screen, const geometry::Vector &offset); void RenderMonsters(SDL_Surface *screen, const geometry::Vector &offset); @@ -150,8 +139,8 @@ private: void LoadInventory(); void DecideMonsterAttack(Monster &) const; - void CalculateDamage(const Stats &attackerStats, TargetSelection &targets) const; - Uint16 CalculateDamage(const Stats &attacker, const Stats &defender) const; + void CalculateDamage(const common::Stats &attackerStats, TargetSelection &targets) const; + Uint16 CalculateDamage(const common::Stats &attacker, const common::Stats &defender) const; private: SDL_Surface *background;