public Player(int id, string name, Team team, Position position, int defensiveSkills, int offensiveSkills, int form) { Id = id; Name = name; Team = team; Position = position; DefensiveSkills = defensiveSkills; OffensiveSkills = offensiveSkills; Form = form; Rating = InitialRating; }
public int DistanceForward(Position other) { return (int)other.Location - (int)Location; }
public int DistanceSideways(Position other) { int distance = (int)other.Side - (int)Side; return distance >= 0 ? distance : -distance; }
public void AddSquadPlayer(int id, string name, Position position, int defensiveSkills, int offensiveSkills, int form) { AddSquadPlayer(new Player(id, name, this, position, defensiveSkills, offensiveSkills, form)); }