Beispiel #1
0
 public bool ChocaAlRotar(Punto p,int[,] a)
 {
     for(int i=0;i<4;i++)
         try
     {
         if(matriz[p.y+a[i,0]][p.x+a[i,1]]!=0)return true;
     }
     catch (IndexOutOfRangeException){return false;}
     return false;
 }
Beispiel #2
0
 public static bool NoSeSale(Punto p,int ld,int li)
 {
     return (p.x-li)>=0 && (p.x+ld)<=9;
 }
Beispiel #3
0
 public Figura()
 {
     posicion=new Punto(4,0);
     tipo=1;
     this.TomaEstado();
 }