Example #1
0
        public void get_Agregar_Luchador(Luchadores luchador)
        {
            if (luchador.id == cuenta.juego.personaje.id)
                jugador_luchador = new LuchadorPersonaje(cuenta.juego.personaje.nombre_personaje, cuenta.juego.personaje.nivel, luchador);

            else if (!luchadores.TryAdd(luchador.id, luchador))
                luchador.get_Actualizar_Luchador(luchador.id, luchador.esta_vivo, luchador.vida_actual, luchador.pa, luchador.pm, luchador.celda_id, luchador.vida_maxima, luchador.equipo, luchador.id_invocador);

            get_Ordenar_Luchadores();
        }
Example #2
0
        public void get_Agregar_Luchador(Luchadores luchador)
        {
            if (luchador.id == cuenta.juego.personaje.id)
            {
                jugador_luchador = new LuchadorPersonaje(cuenta.juego.personaje.nombre, cuenta.juego.personaje.nivel, luchador);
            }
            else
            {
                luchadores.TryAdd(luchador.id, luchador);
            }

            get_Ordenar_Luchadores();
        }
Example #3
0
        public void get_Agregar_Luchador(Luchadores luchador)
        {
            if (luchador.id == cuenta.game.character.id)
            {
                jugador_luchador = new LuchadorPersonaje(cuenta.game.character.nombre, cuenta.game.character.nivel, luchador);
            }

            else if (!luchadores.TryAdd(luchador.id, luchador))
            {
                luchador.get_Actualizar_Luchador(luchador.id, luchador.esta_vivo, luchador.vida_actual, luchador.pa, luchador.pm, luchador.celda, luchador.vida_maxima, luchador.equipo, luchador.id_invocador);
            }

            get_Ordenar_Luchadores();
        }
Example #4
0
        // Token: 0x060001C5 RID: 453 RVA: 0x00008168 File Offset: 0x00006568
        public Luchadores get_Luchador_Esta_En_Celda(int celda_id)
        {
            LuchadorPersonaje jugador_luchador = this.jugador_luchador;
            short?            num = (jugador_luchador != null) ? new short?(jugador_luchador.celda.id) : null;
            int?       num2       = (num != null) ? new int?((int)num.GetValueOrDefault()) : null;
            int        celda_id2  = celda_id;
            bool       flag       = num2.GetValueOrDefault() == celda_id2 & num2 != null;
            Luchadores result;

            if (flag)
            {
                result = this.jugador_luchador;
            }
            else
            {
                result = this.get_Luchadores.FirstOrDefault((Luchadores f) => f.esta_vivo && (int)f.celda.id == celda_id);
            }
            return(result);
        }