SetPosition() private method

private SetPosition ( PlayerPosition position ) : void
position PlayerPosition
return void
Example #1
0
        /// <summary>
        /// Creates new belot game
        /// </summary>
        public BelotGame( Player south, Player east, Player north, Player west )
        {
            _southPlayer = south;
            _eastPlayer = east;
            _northPlayer = north;
            _westPlayer = west;

            _southPlayer.SetPosition( PlayerPosition.South );
            _eastPlayer.SetPosition( PlayerPosition.East );
            _northPlayer.SetPosition( PlayerPosition.North );
            _westPlayer.SetPosition( PlayerPosition.West );

            _firstPlayer = _southPlayer;

            _deals = new List< Deal >();
        }
Example #2
0
        /// <summary>
        /// Creates new belot game
        /// </summary>
        public BelotGame(Player south, Player east, Player north, Player west)
        {
            _southPlayer = south;
            _eastPlayer  = east;
            _northPlayer = north;
            _westPlayer  = west;

            _southPlayer.SetPosition(PlayerPosition.South);
            _eastPlayer.SetPosition(PlayerPosition.East);
            _northPlayer.SetPosition(PlayerPosition.North);
            _westPlayer.SetPosition(PlayerPosition.West);

            _firstPlayer = _southPlayer;

            _deals = new List <Deal>();
        }