Methoden ProcessCallenge und ProcessDragon fertiggestellt v2

This commit is contained in:
Samed Bektas
2014-04-10 18:03:46 +02:00
parent c96ec4db44
commit a67d5a4b3d

View File

@@ -213,7 +213,7 @@ namespace WorldOfPeacecraft
//TODO -> Samed
int id = challengeBlock.GetIntValue("id");
String type;
switch (challengeBlock.GetType().ToString())
switch (challengeBlock.GetStringValue())
{
case "DRAGON":
type = "Dragon";
@@ -226,6 +226,7 @@ namespace WorldOfPeacecraft
break;
}
bool accepted = challengeBlock.GetBoolValue("accepted");
//Challenge c = new Challenge(id, type, accepted);
//CHALLENGE: "begin:challenge","id:",INT,"type:",("DRAGON"|"STAGHUNT"|"SKIRMISH"),"accepted:",BOOLEAN,"end:challenge"
}
@@ -277,6 +278,7 @@ namespace WorldOfPeacecraft
string desc = dragonBlock.GetStringValue("desc");
int x = dragonBlock.GetIntValue("x");
int y = dragonBlock.GetIntValue("y");
//Dragon d p = new Dragon(id, busy, desc, x, y);
//DRAGON: "begin:dragon", "id:",INT,"type:Dragon","busy:"BOOLEAN,"desc:"STRING,"x:",INT,"y:",INT,"end:dragon"
}