SpielStrategien mit Interface und Enum

This commit is contained in:
Daniel Herrmann
2014-06-05 11:22:06 +02:00
parent 0021f75b4d
commit e53f2657aa
5 changed files with 72 additions and 15 deletions

41
src/Skirmish.cs Normal file
View File

@@ -0,0 +1,41 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace WorldOfPeacecraft
{
class Skirmish
{
Random random = new Random();
public Skirmish()
{
}
public Decision getFirstMove()
{
return getNextMove();
}
public Decision getNextMove()
{
int randomNumber = random.Next(0, 2);
Decision bla;
switch (randomNumber)
{
case 0:
bla = Decision.SWORD;
break;
case 1:
bla = Decision.MAGIC;
break;
case 2:
default:
bla = Decision.ALCHEMY;
break;
}
return bla;
}
}
}