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