示例#1
0
 public Player(string name, int money, MonopolyGame game)
 {
     this.name     = name;
     this.Balance  = money;
     this.game     = game;
     this.position = 0;
     this.Join(game);
 }
示例#2
0
 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;
        }
示例#5
0
 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)
 {
 }
示例#8
0
 public PayRent(string actionLabel, ITile tile, IMonopolyGame game) : base(actionLabel, game)
 {
 }
示例#9
0
 public void Unlink()
 {
     this.game = null;
 }
示例#10
0
        /**
         * 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);
        }
示例#11
0
 public Board(IMonopolyGame game)
 {
     tiles     = new List <ITile>();
     this.game = game;
 }
示例#12
0
 public SimpleGameAction(string actionLabel, IMonopolyGame game)
 {
     this.actionLabel = actionLabel;
     this.game        = game;
 }