Stuff
public text v1 · immutable public boolean movement(final int x, final int y)
{
float g = this.x - x;
if(g == 0)
{
if(this.moved)
{
if((this.y - y) == -1 || (this.y - y) == 1)
{
return true;
}
else
{
return false;
}
}
else
{
if(((this.y - y) == -2 || (this.y - y) == 2) || ((this.y - y) == -1 || (this.y - y) == 1))
{
return true;
}
else
{
return false;
}
}
}
else
{
return false;
}
}