import java.awt.*;
import javax.swing.*;

class Road extends Structure {

	int width;	//道幅。
	int kind;	//種別　0─ 1│ 2┌ 3┐ 4┘ 5└ 6├ 7┬ 8┤ 9┴ 10┼

	public Road(int x, int y, int width, int kind) {
		this.x = x;
		this.y = y;
		this.width = width;
		this.kind = kind;

		nationality = 0;	// 中立でどこの国にも所属していない。
	}

	public int getKind() { return kind; }

	public void show(Graphics g, int x, int y, Component view) {
		uge.show(g, x,y, this, view);
	}

	/** この建築物を通過するには、どのくらいの移動力を消費するか。 */
	public int getRestraint() {

		if ( 1 < width ) {
			return 1;
		}
		else {
			return 2;
		}
	}

	public int getOffensivePower(Direction attackedDirection) {
		return 2;
	}
	public int getDefensivePower(Direction attackedDirection) {
		return 2;
	}


//burntField	//焼けあと
//town	//街
//fort	//砦
//川(通行可能)
//海(通行不能)
//岩(通行可能)
//岩(通行不能)
//道

}
