import java.awt.Graphics;
import java.io.IOException;

public class Animal {
	/////////////// State ////////////////
	//
	boolean alive = true;
	boolean eating = false;
	int x;
	int y;
	int dx;
	int dy;
	//
	//////////////////////////////////////
	
    /////////////// Behavior /////////////
	//
	public String speak() {
		return "sound";
	}
	
	public void eating(boolean a) {
		eating = a;
	}
	
	public void die() {
		alive = false;
	}
	
	/*
	 * direction = 0 : UP
	 * direction = 1 : RIGHT
	 * direction = 2 : DOWN
	 * direction = 3 : LEFT
	 */
	public void move() {
		this.x += dx;
		this.y += dy;
	}
	//
	//////////////////////////////////////
	
	public void draw(Graphics g) throws IOException {
	}
}