Exemplo n.º 1
0
        // Token: 0x06000260 RID: 608 RVA: 0x0000A2DC File Offset: 0x000086DC
        public char get_Direccion_Char(Celda celda)
        {
            bool flag = this.x == celda.x;
            char result;

            if (flag)
            {
                result = ((celda.y < this.y) ? 'd' : 'h');
            }
            else
            {
                bool flag2 = this.y == celda.y;
                if (flag2)
                {
                    result = ((celda.x < this.x) ? 'b' : 'f');
                }
                else
                {
                    bool flag3 = this.x > celda.x;
                    if (flag3)
                    {
                        result = ((this.y > celda.y) ? 'c' : 'a');
                    }
                    else
                    {
                        bool flag4 = this.x < celda.x;
                        if (!flag4)
                        {
                            throw new Exception("Error direccion no encontrada");
                        }
                        result = ((this.y < celda.y) ? 'g' : 'e');
                    }
                }
            }
            return(result);
        }
Exemplo n.º 2
0
 // Token: 0x0600025F RID: 607 RVA: 0x0000A2BB File Offset: 0x000086BB
 public bool get_Esta_En_Linea(Celda destino)
 {
     return(this.x == destino.x || this.y == destino.y);
 }
Exemplo n.º 3
0
 // Token: 0x0600025E RID: 606 RVA: 0x0000A294 File Offset: 0x00008694
 public int get_Distancia_Entre_Dos_Casillas(Celda destino)
 {
     return(Math.Abs(this.x - destino.x) + Math.Abs(this.y - destino.y));
 }