aboutsummaryrefslogtreecommitdiff
path: root/game/ai/tactic.h
diff options
context:
space:
mode:
Diffstat (limited to 'game/ai/tactic.h')
-rw-r--r--game/ai/tactic.h62
1 files changed, 31 insertions, 31 deletions
diff --git a/game/ai/tactic.h b/game/ai/tactic.h
index 7eefef9..ec2e382 100644
--- a/game/ai/tactic.h
+++ b/game/ai/tactic.h
@@ -1,32 +1,32 @@
-#ifndef TACTIC_H
-#define TACTIC_H
-
-#include <string>
-#include <vector>
-
-#include "action.h"
-
-namespace ai {
-
-class tactic {
- public:
- tactic () { }
-
- std::vector<action> acts;
- float eval = 0;
-
- // copy constructor
- tactic (const tactic& rhs) { acts = rhs.acts; eval = rhs.eval; }
- tactic& operator=(const tactic& rhs) { acts = rhs.acts; eval = rhs.eval; }
-
- std::string to_string () {
- std::string str = "tactic eval= " + std::to_string(eval) + "\n";
- for (action act : acts) {
- str += act.to_string() + "\n";
- }
- return str;
- }
-};
-
-}
+#ifndef TACTIC_H
+#define TACTIC_H
+
+#include <string>
+#include <vector>
+
+#include "action.h"
+
+namespace ai {
+
+class tactic {
+ public:
+ tactic () { }
+
+ std::vector<action> acts;
+ float eval = 0;
+
+ // copy constructor
+ tactic (const tactic& rhs) { acts = rhs.acts; eval = rhs.eval; }
+ tactic& operator=(const tactic& rhs) { acts = rhs.acts; eval = rhs.eval; }
+
+ std::string to_string () {
+ std::string str = "tactic eval= " + std::to_string(eval) + "\n";
+ for (action act : acts) {
+ str += act.to_string() + "\n";
+ }
+ return str;
+ }
+};
+
+}
#endif \ No newline at end of file