Ejemplo n.º 1
0
 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;
     }
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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"))
     });
 }
Ejemplo n.º 4
0
 public EmptyBlock(Map map)
     : base(map)
 {
 }
Ejemplo n.º 5
0
 public DestinyBlock(Map map, DestinyDeck destinyDeck)
     : base(map, destinyDeck)
 {
 }
Ejemplo n.º 6
0
 public CardBlock(Map map, Deck deck)
     : base(map)
 {
     this.deck = deck;
 }
Ejemplo n.º 7
0
 protected Block(Map map)
 {
     this.map = map;
     tokens = new List<Token>();
 }
Ejemplo n.º 8
0
 public ChanceBlock(Map map, ChanceDeck chanceDeck)
     : base(map, chanceDeck)
 {
 }
Ejemplo n.º 9
0
 public LandBlock(Map map, Land land)
     : base(map)
 {
     this.land = land;
 }