Ejemplo n.º 1
0
 public Gameplay(Dice dice, Mover mover, List<Player> turnOrder)
 {
     this.dice = dice;
     this.mover = mover;
     currentPlayersTurn = 0;
     turns = new List<Player>();
     this.turnOrder = turnOrder;
 }
Ejemplo n.º 2
0
 public void SetupMover()
 {
     dice = new Dice();
     banker = new Banker();
     board = new Board(banker, dice);
     mover = new Mover(dice, banker, board);
     Car = new Player("Car");
 }
Ejemplo n.º 3
0
 public Game(Dice dice)
 {
     players = new List<Player>();
     turnOrder = new List<Player>();
     dummyPlayerList = new List<Player>();
     random = new Random();
     banker = new Banker();
     this.dice = dice;
     board = new Board(banker, dice);
     mover = new Mover(dice, banker, board);
     proprietor = new Proprietor(banker);
     gameplay = new Gameplay(dice, mover, turnOrder);
 }
Ejemplo n.º 4
0
 public void SetupDice()
 {
     fakeDice = new FakeDice();
     dice = new Dice();
 }
Ejemplo n.º 5
0
 public void Setup()
 {
     dice = new Dice();
     player = new Player("Player");
     player2 = new Player("Player2");
     banker = new Banker();
     proprietor = new Proprietor(banker);
     red = new List<Property>();
     property = new Property("Property", 1, 50, 10, red, banker);
     red.Add(property);
 }
Ejemplo n.º 6
0
 public void CreateBoard()
 {
     var banker = new Banker();
     var dice = new Dice();
     board = new Board(banker, dice);
 }
Ejemplo n.º 7
0
 public Mover(Dice dice, Banker banker, Board board)
 {
     this.banker = banker;
     this.dice = dice;
     this.board = board;
 }