diff --git a/server/combat_instance.hpp b/server/combat_instance.hpp index 2507bb3..30257ca 100644 --- a/server/combat_instance.hpp +++ b/server/combat_instance.hpp @@ -22,23 +22,29 @@ #ifndef COMBATINSTANCE_HPP_ #define COMBATINSTACNE_HPP_ +#include "vector2.hpp" +#include "bbox.hpp" + #include "character_data.hpp" #include "enemy_data.hpp" +#include #include struct CombatInstance { - //TODO: metadata - - //world position - int mapIndex = 0; - Vector2 position = {0.0,0.0}; - Vector2 motion = {0.0,0.0}; - + //combatants std::list characterList; std::list enemyList; - //TODO: more? + //world interaction + int mapIndex = 0; + Vector2 position = {0.0,0.0}; + BBox bbox = {0,0,0,0}; + + //time interval + std::chrono::time_point lastTick; + + void Update(); }; #endif