aboutsummaryrefslogtreecommitdiff
path: root/game/enemy/BattleScript.h
diff options
context:
space:
mode:
authorMax-001 <maxsmits21@kpnmail.nl>2025-01-10 17:07:28 +0100
committerMax-001 <maxsmits21@kpnmail.nl>2025-01-10 17:07:28 +0100
commit912774706bab1e7817facb3cff12e961a89d1980 (patch)
tree0896b12c29dccc247c69e54daaa32d8ce3097ed0 /game/enemy/BattleScript.h
parent90a33d36c34b1512270a6724564995dd8bf914a6 (diff)
parent7aa07561a52016007ff852acefa4db68260f0f1e (diff)
Merge remote-tracking branch 'origin/wouter/game-improvements' into max/game2
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);
};