Enum in eigene Klasse verfrachtet, jetzt überall erhältlich!
This commit is contained in:
10
src/EnumDecision.cs
Normal file
10
src/EnumDecision.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using System;
|
||||
|
||||
namespace WorldOfPeacecraft
|
||||
{
|
||||
public enum Decision
|
||||
{
|
||||
DRAGON, STAGHUNT, SKIRMISH
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user