aboutsummaryrefslogtreecommitdiff
path: root/game/enemy/BattleScript.h
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2025-01-10 19:51:02 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2025-01-10 19:51:02 +0100
commit16917357837916d1ef88b6122218fa0d567d1ddc (patch)
treeeefa561b81c48549277950692fdad714a2f501f2 /game/enemy/BattleScript.h
parent0b19fe5a9168368d4be0993407dd3fc3bdfa0611 (diff)
parentb9d00961a8894356c7cff7597de424a12d2841a6 (diff)
Merge remote-tracking branch 'origin/master' into niels/game
Diffstat (limited to 'game/enemy/BattleScript.h')
-rw-r--r--game/enemy/BattleScript.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/game/enemy/BattleScript.h b/game/enemy/BattleScript.h
index ddd0be1..57aa16c 100644
--- a/game/enemy/BattleScript.h
+++ b/game/enemy/BattleScript.h
@@ -9,6 +9,7 @@ struct BattleWonEvent : public crepe::Event {};
struct BattleStartEvent : public crepe::Event {
public:
int num_enemies = 0;
+ bool battle = false;
};
class BattleScript : public crepe::Script {
public:
@@ -20,5 +21,6 @@ private:
bool battle_active = false;
std::random_device rd;
std::default_random_engine engine;
+ void spawn_enemies(int amount);
bool create_battle(const BattleStartEvent & e);
};