Esempio n. 1
0
 public Game(Map map, List<Player> players, bool gameOverFlag, int turnCounter, bool canRollDice)
 {
     this.map = map;
     this.die = new Die();
     this.players = players;
     this.destinyDeck = new DestinyDeck();
     this.chanceDeck = new ChanceDeck();
     this.gameOverFlag = gameOverFlag;
     this.turnCounter = turnCounter;
     this.canRollDice = canRollDice;
 }
Esempio n. 2
0
 public Game(int startMoney, List<Player> players)
 {
     this.response = ResponseType.NoResponse;
     this.die = new Die();
     this.gameOverFlag = false;
     this.players = players;
     foreach (Player player in players)
     {
         player.JoinGame(this, startMoney);
     }
     this.destinyDeck = new DestinyDeck();
     this.chanceDeck = new ChanceDeck();
     map = new Map(this);
     map.RegisterBlocks(new List<Block>(){
         // 1st street
         new StartBlock(map, 1000, players),
         new LandBlock(map, new Land(500, "Alpha")),
         new LandBlock(map, new Land(400, "Bravo")),
         new LandBlock(map, new Land(200, "Charlie")),
         new ChanceBlock(map, chanceDeck),
         new LandBlock(map, new Land(200, "Delta")),
         new LandBlock(map, new Land(400, "Echo")),
         new LandBlock(map, new Land(300, "Foxtrot")),
         // 2nd street
         new EmptyBlock(map),
         new LandBlock(map, new Land(100, "Golf")),
         new LandBlock(map, new Land(200, "Hotel")),
         new LandBlock(map, new Land(400, "India")),
         new DestinyBlock(map, destinyDeck),
         new LandBlock(map, new Land(300, "Juliet")),
         new LandBlock(map, new Land(400, "Kilo")),
         new LandBlock(map, new Land(700, "Lima")),
         // 3rd street
         new EmptyBlock(map),
         new LandBlock(map, new Land(500, "Mike")),
         new LandBlock(map, new Land(200, "November")),
         new LandBlock(map, new Land(300, "Oscar")),
         new ChanceBlock(map, chanceDeck),
         new LandBlock(map, new Land(200, "Papa")),
         new LandBlock(map, new Land(100, "Quebec")),
         new LandBlock(map, new Land(100, "Romeo")),
         // 4th street
         new EmptyBlock(map),
         new LandBlock(map, new Land(200, "Sierra")),
         new LandBlock(map, new Land(400, "Tango")),
         new LandBlock(map, new Land(600, "Uniform")),
         new DestinyBlock(map, destinyDeck),
         new LandBlock(map, new Land(300, "Victor")),
         new LandBlock(map, new Land(500, "Whiskey")),
         new LandBlock(map, new Land(800, "X-ray"))
     });
 }