Enum in eigene Klasse verfrachtet, jetzt überall erhältlich!
This commit is contained in:
@@ -67,6 +67,7 @@
|
|||||||
<Compile Include="src\YourID.cs" />
|
<Compile Include="src\YourID.cs" />
|
||||||
<Compile Include="src\DefaultGui\Time.cs" />
|
<Compile Include="src\DefaultGui\Time.cs" />
|
||||||
<Compile Include="src\DefaultGui\Online.cs" />
|
<Compile Include="src\DefaultGui\Online.cs" />
|
||||||
|
<Compile Include="src\EnumDecision.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup />
|
<ItemGroup />
|
||||||
</Project>
|
</Project>
|
||||||
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;
|
using System;
|
||||||
|
|
||||||
namespace inf3
|
namespace WorldOfPeacecraft
|
||||||
{
|
{
|
||||||
public class Opponent
|
public class Opponent
|
||||||
{
|
{
|
||||||
int id_;
|
int id_;
|
||||||
int points_;
|
int points_;
|
||||||
int total_;
|
int total_;
|
||||||
enum Decision {DRAGON, STAGHUNT, SKIRMISH};
|
|
||||||
Decision d_;
|
Decision d_;
|
||||||
|
|
||||||
public Opponent (int id, int points, int total, Decision d)
|
public Opponent (int id, int points, int total, Decision d)
|
||||||
|
|||||||
@@ -30,8 +30,6 @@ namespace WorldOfPeacecraft
|
|||||||
private Regex LastLineRegex;
|
private Regex LastLineRegex;
|
||||||
private Backend backend;
|
private Backend backend;
|
||||||
|
|
||||||
enum Decision {DRAGON, STAGHUNT, SKIRMISH};
|
|
||||||
|
|
||||||
public Parser ()
|
public Parser ()
|
||||||
{
|
{
|
||||||
ParserThread = new Thread (new ThreadStart (this.RunParser));
|
ParserThread = new Thread (new ThreadStart (this.RunParser));
|
||||||
|
|||||||
Reference in New Issue
Block a user