public Player(string name, int money, MonopolyGame game) { this.name = name; this.Balance = money; this.game = game; this.position = 0; this.Join(game); }
public void Leave() { if (this.game == null) { return; } game.RemovePlayer(this); this.game = null; }
public void CreateGame(string args) { string[] names = args.Split(','); using (var kernel = new StandardKernel(new MonopolyBindings(names))) { game = kernel.Get<IMonopolyGame>(); roundsToPlay = 20; } }
private int money; // about of money transfer from/to the bank. public ReceiveMoneyAction(string ActionLabel, int money, IMonopolyGame game) : base(ActionLabel, game) { this.money = money; }
public UKBoard(IMonopolyGame game) : base(game) { CreateBoard(); }
public CommunityChestPickCard(string ActionLabel, IMonopolyGame game) : base(ActionLabel, game) { }
public ChancePickACard(string ActionLabel, IMonopolyGame game) : base(ActionLabel, game) { }
public PayRent(string actionLabel, ITile tile, IMonopolyGame game) : base(actionLabel, game) { }
public void Unlink() { this.game = null; }
/** * Join player to a Monopoly Game * it set the link in player to Game and add him to the game * */ public void Join(IMonopolyGame game) { this.game = game; game.AddPlayer(this); }
public Board(IMonopolyGame game) { tiles = new List <ITile>(); this.game = game; }
public SimpleGameAction(string actionLabel, IMonopolyGame game) { this.actionLabel = actionLabel; this.game = game; }