You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
519 B
26 lines
519 B
5 months ago
|
#pragma once
|
||
|
#include "rituals.hpp"
|
||
|
#include "config.hpp"
|
||
|
#include "dinkyecs.hpp"
|
||
|
#include <optional>
|
||
|
#include "components.hpp"
|
||
|
|
||
|
namespace combat {
|
||
|
|
||
|
struct BattleAction {
|
||
|
DinkyECS::Entity entity;
|
||
|
ai::EntityAI &ai;
|
||
|
components::Combat &combat;
|
||
|
};
|
||
|
|
||
|
struct BattleEngine {
|
||
|
std::unordered_map<DinkyECS::Entity, BattleAction> combatants;
|
||
|
std::vector<BattleAction> pending_actions;
|
||
|
|
||
|
void add_enemy(BattleAction ba);
|
||
|
bool plan();
|
||
|
std::optional<BattleAction> next();
|
||
|
void dump();
|
||
|
};
|
||
|
}
|