diff --git a/inf3.csproj b/inf3.csproj index 68b087e..87944bf 100644 --- a/inf3.csproj +++ b/inf3.csproj @@ -67,6 +67,7 @@ + \ No newline at end of file diff --git a/src/EnumDecision.cs b/src/EnumDecision.cs new file mode 100644 index 0000000..93b299c --- /dev/null +++ b/src/EnumDecision.cs @@ -0,0 +1,10 @@ +using System; + +namespace WorldOfPeacecraft +{ + public enum Decision + { + DRAGON, STAGHUNT, SKIRMISH + } +} + diff --git a/src/Opponent.cs b/src/Opponent.cs index 56f1b18..d9932bf 100644 --- a/src/Opponent.cs +++ b/src/Opponent.cs @@ -1,13 +1,12 @@ using System; -namespace inf3 +namespace WorldOfPeacecraft { public class Opponent { int id_; int points_; int total_; - enum Decision {DRAGON, STAGHUNT, SKIRMISH}; Decision d_; public Opponent (int id, int points, int total, Decision d) diff --git a/src/Parser.cs b/src/Parser.cs index f6a406f..af15516 100644 --- a/src/Parser.cs +++ b/src/Parser.cs @@ -30,8 +30,6 @@ namespace WorldOfPeacecraft private Regex LastLineRegex; private Backend backend; - enum Decision {DRAGON, STAGHUNT, SKIRMISH}; - public Parser () { ParserThread = new Thread (new ThreadStart (this.RunParser));