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 Cat extends Animal {
	public Cat () {
		this.x = (int)(Math.random() * 1920);
		this.y = (int)(Math.random() * 1080);
		this.alive = true;
		this.eating = false;
	}
	
	public Cat (int x, int y, boolean alive, boolean eating) {
		this.x = x;
		this.y = y;
		this.alive = alive;
		this.eating = eating;
	}
	
	public String speak() {
		return "meow";
	}
	
	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("cat_a1.gif"));
		} 
		catch (IOException e) {
			e.printStackTrace();
		}
		BufferedImage dogBufferdImage = (BufferedImage)dogImage;
		g.drawImage(dogBufferdImage, x, y, null);
	}
}