Beispiel #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;
 }
Beispiel #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");
 }
Beispiel #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);
 }
Beispiel #4
0
 public void SetupDice()
 {
     fakeDice = new FakeDice();
     dice = new Dice();
 }
 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);
 }
Beispiel #6
0
 public void CreateBoard()
 {
     var banker = new Banker();
     var dice = new Dice();
     board = new Board(banker, dice);
 }
Beispiel #7
0
 public Mover(Dice dice, Banker banker, Board board)
 {
     this.banker = banker;
     this.dice = dice;
     this.board = board;
 }