]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/BattleState.h
added monster drawing routine in battle state
[l2e.git] / src / battle / BattleState.h
index b88bae3b30b8a7151d45c3db34041ac4ac8b6fcb..ccc242512bf87ddbecf25e0656f86d7cb0e1a8fa 100644 (file)
 
 #include "Monster.h"
 #include "../app/State.h"
+#include "../geometry/Point.h"
 
 #include <vector>
 #include <SDL.h>
 
 namespace battle {
 
+class PartyLayout;
+
 class BattleState
 : public app::State {
 
 public:
-       explicit BattleState(SDL_Surface *background)
-       : background(background) { }
+       BattleState(SDL_Surface *background, const PartyLayout &monstersLayout)
+       : background(background)
+       , monstersLayout(&monstersLayout) { }
+
+public:
+       void AddMonster(const Monster &);
 
 public:
        virtual void EnterState(app::Application &ctrl, SDL_Surface *screen);
@@ -33,6 +40,8 @@ public:
 
 private:
        SDL_Surface *background;
+       const PartyLayout *monstersLayout;
+       std::vector<geometry::Point<int> > monsterPositions;
        std::vector<Monster> monsters;
 
 };