challenge erzeugt und wird jetzt auch benutzt
This commit is contained in:
19
src/Challenge.cs
Normal file
19
src/Challenge.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
|
||||
namespace inf3
|
||||
{
|
||||
public class Challenge
|
||||
{
|
||||
int id_;
|
||||
string type_;
|
||||
bool accepted_;
|
||||
public Challenge (int id, string type, bool accepted)
|
||||
{
|
||||
id_ = id;
|
||||
type_ = type;
|
||||
accepted_ = accepted;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//Challenge c = new Challenge(id, type, accepted);
|
||||
@@ -256,7 +256,7 @@ namespace WorldOfPeacecraft
|
||||
break;
|
||||
}
|
||||
bool accepted = challengeBlock.GetBoolValue("accepted");
|
||||
//Challenge c = new Challenge(id, type, accepted);
|
||||
Challenge c = new Challenge(id, type, accepted);
|
||||
//CHALLENGE: "begin:challenge","id:",INT,"type:",("DRAGON"|"STAGHUNT"|"SKIRMISH"),"accepted:",BOOLEAN,"end:challenge"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user