Files
Paradise/tools/mapmerge/Source/Location.java
Tigercat2000 27d56bdab1 Update gitignore and mapmerge for tgstyle maptree
This commit updates the .gitignore file to ignore the proper files with
the new tree system, and modifies the mapmerge files to the latest -tg-
files, as those are already compatible and written for the new tree
system.
2015-05-11 16:03:07 -07:00

43 lines
837 B
Java

class Location
{
int x;
int y;
int z;
public Location()
{
}
public Location(int paramInt1, int paramInt2, int paramInt3)
{
this.x = paramInt1;
this.y = paramInt2;
this.z = paramInt3;
}
public void set(int paramInt1, int paramInt2, int paramInt3)
{
this.x = paramInt1;
this.y = paramInt2;
this.z = paramInt3;
}
public boolean equals(Object paramObject)
{
if (!(paramObject instanceof Location)) return false;
Location localLocation = (Location)paramObject;
if ((this.x != localLocation.x) || (this.y != localLocation.y) || (this.z != localLocation.z)) return false;
return true;
}
public int hashCode()
{
return (this.z * 256 + this.y) * 256 + this.x;
}
public String toString()
{
return "(" + this.x + "," + this.y + "," + this.z + ")";
}
}