All pastes #46339 Raw Edit

Stuff

public text v1 · immutable
#46339 ·published 2006-03-20 15:41 UTC
rendered paste body
	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;
		}
	}