opponent aufruf hat gefehlt -> eingefügt + ID attribut eingefügt
This commit is contained in:
@@ -57,7 +57,7 @@
|
|||||||
<Compile Include="src\StringUtils.cs" />
|
<Compile Include="src\StringUtils.cs" />
|
||||||
<Compile Include="src\ParsingException.cs" />
|
<Compile Include="src\ParsingException.cs" />
|
||||||
<Compile Include="src\Message.cs" />
|
<Compile Include="src\Message.cs" />
|
||||||
<Compile Include="Opponent.cs" />
|
<Compile Include="src\Opponent.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Folder Include="src\DefaultGui\" />
|
<Folder Include="src\DefaultGui\" />
|
||||||
|
|||||||
@@ -4,13 +4,15 @@ namespace inf3
|
|||||||
{
|
{
|
||||||
public class Opponent
|
public class Opponent
|
||||||
{
|
{
|
||||||
|
int id_;
|
||||||
int points_;
|
int points_;
|
||||||
int total_;
|
int total_;
|
||||||
enum Decision {DRAGON, STAGHUNT, SKIRMISH};
|
enum Decision {DRAGON, STAGHUNT, SKIRMISH};
|
||||||
Decision d_;
|
Decision d_;
|
||||||
|
|
||||||
public Opponent (int points, int total, Decision d)
|
public Opponent (int id, int points, int total, Decision d)
|
||||||
{
|
{
|
||||||
|
id_ = id;
|
||||||
points_ = points;
|
points_ = points;
|
||||||
total_ = total;
|
total_ = total;
|
||||||
d_ = d;
|
d_ = d;
|
||||||
Reference in New Issue
Block a user