Esempio n. 1
0
        /// <summary>Horrific constructor of Player object: it is called directly inside the XML parser
        /// of roster file
        /// </summary>
        public Player(string name, string nationality, int age, int keeping, int tackling, int passing, int shooting, int aggression, int keepingAbility, int tacklingAbility, int passingAbility, int shootingAbility, int games, int saves, int tackles, int keyPasses, int shots, int goals, int assists, int dps, int injury, int suspension, int fitness, int stamina, PreferredSide preferredside)
        {
            this.name            = name;
            this.nationality     = nationality;
            this.age             = age;
            this.keeping         = keeping;
            this.tackling        = tackling;
            this.passing         = passing;
            this.shooting        = shooting;
            this.aggression      = aggression;
            this.keepingAbility  = keepingAbility;
            this.tacklingAbility = tacklingAbility;
            this.passingAbility  = passingAbility;
            this.shootingAbility = shootingAbility;
            this.games           = games;
            this.saves           = saves;
            this.tackles         = tackles;
            this.keyPasses       = keyPasses;
            this.shots           = shots;
            this.goals           = goals;
            this.assists         = assists;
            this.dps             = dps;
            this.injury          = injury;
            this.suspension      = suspension;
            // ESMS 2.7
            this.preferredside = preferredside;
            this.fitness       = fitness;
            this.stamina       = stamina;

            throw new NotImplementedException("Error en Engine.Player.Player(...) -  HZ: este metodo carga los campos a partir de los parametros, finalmente llama a createNode() para crear un XMLNode con estos datos, sería como agregar un registro a la BD y luego tener el objeto para usarlo en sus manipulaciones. Ver de reemplazarlo por el DAL.");
            //this.playerNode = createNode();
        }
Esempio n. 2
0
 public virtual bool isCompatible(PreferredSide side)
 {
     if ((innerValue & side.Side) != 0)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Esempio n. 3
0
 public virtual bool likeSide(PreferredSide side)
 {
     return(this.preferredside.isCompatible(side));
 }
Esempio n. 4
0
 public virtual void  setSub(int number, Player player, string pos, PreferredSide side)
 {
     _subs[number]     = player;
     _posSubs[number]  = pos;
     _sideSubs[number] = side;
 }
Esempio n. 5
0
 // TODO: Check possible exceptions
 public virtual void  setPlayer(int number, Player player, string pos, PreferredSide side)
 {
     _team[number]     = player;
     _posTeam[number]  = pos;
     _sideTeam[number] = side;
 }