diff options
author | heavydemon21 <48092678+heavydemon21@users.noreply.github.com> | 2025-01-10 19:35:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-10 19:35:08 +0100 |
commit | b9d00961a8894356c7cff7597de424a12d2841a6 (patch) | |
tree | aa033307a742df0c22131482858749bcf480ba38 /game/enemy/BattleScript.h | |
parent | 20f6f8ddf013e5d18770bd0a01474a845843bdd7 (diff) | |
parent | f3413f3d0fbffee0cc363096cd873a8be766ad64 (diff) |
Merge pull request #123 from lonkaars/wouter/game-improvements
some extra features
Diffstat (limited to 'game/enemy/BattleScript.h')
-rw-r--r-- | game/enemy/BattleScript.h | 2 |
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); }; |