示例#1
0
 /// <summary>
 /// A player pays another player
 /// </summary>
 /// <param name="receivingPlayer">The player who receives money</param>
 /// <param name="givingPlayer">The player who gives money</param>
 /// <param name="amount">The amount of money</param>
 public void PlayerGivesPlayerMoney(PlayerViewModel receivingPlayer, int amount)
 {
     PlayerRemoveMoney(amount);
     receivingPlayer.PlayerAddMoney(amount);
 }
示例#2
0
 /// <summary>
 /// Gets the game card that a player is currently standing on.
 /// </summary>
 /// <param name="selectPlayer">The given player.</param>
 /// <returns>Returns the game card object that the given player is standing on.</returns>
 public GameCardViewModel GetPlayerGameCard(PlayerViewModel selectPlayer)
 {
     return(GameCards[selectPlayer.CurrentPosition]);
 }