Ejemplo n.º 1
0
        protected void AddPlayer(Player player, PlayerState playerState, PlayerBehavior behavior)
        {
            var set = new PlayerSet(player, playerState, behavior);

            PlayerSets.Add(set);

            Game.Players.Add(player);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Checks, if the player has a certain figure on the field
 /// </summary>
 /// <param name="player">Player to be evaluated</param>
 /// <param name="field">Field to be evaluated</param>
 /// <returns>true, if the given player has a figure on the field</returns>
 public static bool HasFigureOnField(PlayerSet player, Field field)
 {
     return(player.Player.Figures.Any(
                x => x.Field == field));
 }
Ejemplo n.º 3
0
 public abstract PlayerState UpdatePlayerState(PlayerSet set);