import java.awt.Graphics;
import java.awt.Image;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;

public class Dog extends Animal {
	public Dog () {
		this.x = (int)(Math.random() * 1920);
		this.y = (int)(Math.random() * 1080);
		this.alive = true;
		this.eating = false;
	}
	
	public Dog (int x, int y, boolean alive, boolean eating) {
		this.x = x;
		this.y = y;
		this.alive = alive;
		this.eating = eating;
	}
	
	public String speak() {
		return "wang wang";
	}
	
	public void draw(Graphics g) {
		// Use the drawImage() method of the Graphics object g, to draw this Animal.

		Image dogImage = null;
		try {
			dogImage = ImageIO.read(new File("dog.png"));
		} 
		catch (IOException e) {
			e.printStackTrace();
		}
		BufferedImage dogBufferdImage = (BufferedImage)dogImage;
		g.drawImage(dogBufferdImage, x, y, null);
	}
}