package com.mykumi.atpuzzle.blockmodel;

public abstract class Block {
	protected BlockType blockType; 
	protected Position position;
	
	public abstract void display();

	public BlockType getBlockType() {
		return blockType;
	}
	
	public void setPosition(int x, int y) {
		if (position == null) {
			this.position = new Position();
		}
		this.position.setX(x);
		this.position.setY(y);
	}
	
	public Position getPosition() {
		return this.position;
	}
}

@@ -380,24 +380,89 @@
 tY(y);%0A%09%7D%0A%09%0A
+%09public void setPosition(Position p) %7B%0A%09%09this.position = p;%0A%09%7D%0A%09%0A
 %09public Posi

add set Position overriding method by Position Object