XenoLight / infinity-client

Automatically exported from code.google.com/p/infinity-client
0 stars 0 forks source link

New API Deprecations - Specifically Methods.distanceTo() #21

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Why continue the pattern of using a disconnected function like 
Calculations.distanceTo(RSTile t) to replace a disconnected function like 
Methods.distancdTo(RSTile t).  

Did anyone look to see what RSTile already had?  Did anyone notice that RSTile 
has a distanceTo (actually TWO) method.  One that defaults on using the 
character's location the end point and one that takes another RSTile as the 
endpoint?

Instead of making scripters change a script from
  distanceTo(thisTile);
to
  calc.distancdTo(thisTile);

I strongly urge us to use the RSTile API for RSTile actions/operations/whatever 
and use:
  thisTile.distanceTo() 
or, for distance to another tile:
  thisTile.distanceTo(theOtherTile);

Original issue reported on code.google.com by zzSlee...@hotmail.com on 20 Jun 2011 at 2:51