Exemple #1
0
        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;
        }
Exemple #2
0
 public int DistanceForward(Position other)
 {
     return (int)other.Location - (int)Location;
 }
Exemple #3
0
 public int DistanceSideways(Position other)
 {
     int distance = (int)other.Side - (int)Side;
     return distance >= 0 ? distance : -distance;
 }
Exemple #4
0
 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));
 }