Beispiel #1
0
 public bool isTheSameAs(Map newMap, int j, int c)
 {
     if (this.light == newMap.light && this.color() == 0 && newMap.color() == 0)
     {
         if (this.active())
         {
             if (newMap.active() && this.type == newMap.type && this.option() == newMap.option())
             {
                 return true;
             }
         }
         else
         {
             if (this.lava())
             {
                 if (newMap.lava())
                 {
                     return true;
                 }
             }
             else
             {
                 if (this.water())
                 {
                     if (newMap.water())
                     {
                         return true;
                     }
                 }
                 else
                 {
                     if (this.honey())
                     {
                         if (newMap.honey())
                         {
                             return true;
                         }
                     }
                     else
                     {
                         if (this.wall())
                         {
                             if (newMap.wall() && this.type == newMap.type && this.type != 27)
                             {
                                 return true;
                             }
                         }
                         else
                         {
                             if (!this.active() && !newMap.active() && !newMap.lava() && !newMap.water() && !newMap.wall())
                             {
                                 if ((double)j > Main.worldSurface)
                                 {
                                     if ((double)j < Main.rockLayer)
                                     {
                                         if ((double)c > Main.worldSurface && (double)c < Main.rockLayer && this.type == newMap.type)
                                         {
                                             return true;
                                         }
                                     }
                                     else
                                     {
                                         if (j < Main.maxTilesY - 200)
                                         {
                                             if ((double)c >= Main.rockLayer && c < Main.maxTilesY - 200 && this.type == newMap.type)
                                             {
                                                 return true;
                                             }
                                         }
                                         else
                                         {
                                             if (c >= Main.maxTilesY - 200)
                                             {
                                                 return true;
                                             }
                                         }
                                     }
                                 }
                                 else
                                 {
                                     if (j == c)
                                     {
                                         return true;
                                     }
                                 }
                             }
                         }
                     }
                 }
             }
         }
     }
     return false;
 }