import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

class Structure extends Unit {

	/** この建築物を通過するには、どのくらいの移動力を消費するか。 */
	public int getRestraint() {

		int retRest;
		int dummy = 2;
		retRest = board.getGround(x, y).getGroundRestraint() + dummy;
		return retRest;
	}
	static final int ground = 0;	//大地
	static final int grass = 1;	//草原
	static final int farmland = 2;	//農地

	public int getOffensivePower(Direction attackedDirection) {
		return 2;
	}
	public int getDefensivePower(Direction attackedDirection) {
		return 2;
	}

	public void show(Graphics g, int x, int y, Component view) {
		uge.show(g, x,y, this, view);
	}

//burntField	//焼けあと
//town	//街
//fort	//砦
//川(通行可能)
//海(通行不能)
//岩(通行可能)
//岩(通行不能)
//道

}
