mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-07 00:38:46 +00:00
Improve the toString result in Position.
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
package org.apollo.game.model;
|
package org.apollo.game.model;
|
||||||
|
|
||||||
|
import com.google.common.base.Objects;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a position in the world.
|
* Represents a position in the world.
|
||||||
*
|
*
|
||||||
@@ -217,7 +219,8 @@ public final class Position {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return Position.class.getName() + " [x=" + x + ", y=" + y + ", height=" + height + "]";
|
return Objects.toStringHelper(this).add("x", x).add("y", y).add("height", height)
|
||||||
|
.add("sector x", getTopLeftSectorX()).add("sector y", getTopLeftSectorY()).toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user