From 1d26e2b8af4ab5a52f5401ffc3e0e05076c9548a Mon Sep 17 00:00:00 2001 From: Wafa Sadri Date: Fri, 11 Apr 2014 11:29:43 +0200 Subject: [PATCH] result erstellt und benutzt im parser --- inf3.csproj | 1 + src/Parser.cs | 4 ++-- src/Result.cs | 20 ++++++++++++++++++++ 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 src/Result.cs diff --git a/inf3.csproj b/inf3.csproj index efa4bc4..cb903d8 100644 --- a/inf3.csproj +++ b/inf3.csproj @@ -58,6 +58,7 @@ + diff --git a/src/Parser.cs b/src/Parser.cs index fbb3bd2..77b42fe 100644 --- a/src/Parser.cs +++ b/src/Parser.cs @@ -210,7 +210,7 @@ namespace WorldOfPeacecraft int delay = procBlock.GetIntValue ("delay"); LinkedList block = procBlock.GetBlocks (); ProcessOpponent (block.First.Value); - //Result r = new Result(round, running, delay); + Result r = new Result(round, running, delay); } private void ProcessOpponent(Block oppBlock) @@ -227,7 +227,7 @@ namespace WorldOfPeacecraft d = Decision.STAGHUNT; if (stringValue == "SKIRMISH") d = Decision.SKIRMISH; - + Opponent o = new Opponent (id, points, total, d); } //DRAGON|STAGHUNT|SKIRMISH diff --git a/src/Result.cs b/src/Result.cs new file mode 100644 index 0000000..ec965d6 --- /dev/null +++ b/src/Result.cs @@ -0,0 +1,20 @@ +using System; + +namespace inf3 +{ + public class Result + { + int round_; + bool running_; + int delay_; + + public Result (int round, bool running, int delay) + { + round_ = round; + running_ = running; + delay_ = delay; + } + } +} +/*Result r = new Result(round, running, delay);*/ +