aboutsummaryrefslogtreecommitdiff
path: root/game/enemy/BattleScript.h
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2025-01-08 13:52:43 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2025-01-08 13:52:43 +0100
commitfcec9d7598f0808d4081120a9cb2036bdea59737 (patch)
tree4963d2f791a4c3ba27d357ad38345094a8e65fc4 /game/enemy/BattleScript.h
parent1413beea3b506b15b9f0080cec29c745d1ef88da (diff)
make format
Diffstat (limited to 'game/enemy/BattleScript.h')
-rw-r--r--game/enemy/BattleScript.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/game/enemy/BattleScript.h b/game/enemy/BattleScript.h
index f91c597..ddd0be1 100644
--- a/game/enemy/BattleScript.h
+++ b/game/enemy/BattleScript.h
@@ -1,25 +1,24 @@
#pragma once
-#include <crepe/api/Script.h>
#include <crepe/api/BehaviorScript.h>
#include <crepe/api/Event.h>
+#include <crepe/api/Script.h>
#include <random>
-struct BattleWonEvent : public crepe::Event{
+struct BattleWonEvent : public crepe::Event {};
-};
-
-struct BattleStartEvent : public crepe::Event{
- public:
+struct BattleStartEvent : public crepe::Event {
+public:
int num_enemies = 0;
};
-class BattleScript : public crepe::Script{
- public:
+class BattleScript : public crepe::Script {
+public:
BattleScript();
void init() override;
void fixed_update(crepe::duration_t dt) override;
- private:
+
+private:
bool battle_active = false;
std::random_device rd;
std::default_random_engine engine;
- bool create_battle(const BattleStartEvent& e);
+ bool create_battle(const BattleStartEvent & e);
};