public StartBlock(Map map, int salary, List<Player> players)
     : base(map)
 {
     this.salary = salary;
     foreach (Player player in players)
     {
         this.tokens.Add(player.token);
         player.token.position = 0;
     }
 }
Exemple #2
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;
 }
Exemple #3
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"))
     });
 }
 public EmptyBlock(Map map)
     : base(map)
 {
 }
 public DestinyBlock(Map map, DestinyDeck destinyDeck)
     : base(map, destinyDeck)
 {
 }
 public CardBlock(Map map, Deck deck)
     : base(map)
 {
     this.deck = deck;
 }
 protected Block(Map map)
 {
     this.map = map;
     tokens = new List<Token>();
 }
 public ChanceBlock(Map map, ChanceDeck chanceDeck)
     : base(map, chanceDeck)
 {
 }
 public LandBlock(Map map, Land land)
     : base(map)
 {
     this.land = land;
 }