예제 #1
0
 void DropAbove(JewelButton jb){
     for(int i = jb.x; i >= 0; i--){
         JewelButton job = GetJewelInCoordinates(i, jb.y);
         if(job!=null) job.Drop();    
     }            
 }
예제 #2
0
 public static TypeOfMatch CheckForMatch(JewelButton jb){
     //         //check next ones in row
     //         //check next ones in column
     //         //have an index that counts the number of stuffs                                 
     return TypeOfMatch.None;
 }
예제 #3
0
 void SwitchValues(JewelButton first,JewelButton second){                       
     int auxx, auxy;            
     auxy = first.y;
     auxx = first.x;
     first.x = second.x;
     first.y = second.y;
     second.x = auxx;
     second.y = auxy;            
 }