Files
artloglaby/java/org/artisanlogiciel/games/Position.java
2016-03-28 14:39:07 +02:00

42 lines
617 B
Java

package org.artisanlogiciel.games;
public class Position
{
private int x, y;
private int depth;
public Position(int x, int y, int depth)
{
this.x = x;
this.y = y;
this.depth = depth;
}
public Position(int x, int y)
{
this.x = x;
this.y = y;
this.depth = 0;
}
public int getX()
{
return this.x;
}
public int getY()
{
return this.y;
}
public int getDepth()
{
return depth;
}
public String toString()
{
return "(" + x + "," + y + ")" + "/" + depth;
}
}