import java.awt.event.KeyEvent;
import java.awt.image.BufferedImage;

public class Cat extends Animal {
	public Cat (int x, int y) {
		super(x, y, KeyEvent.VK_UP, KeyEvent.VK_LEFT, KeyEvent.VK_DOWN, KeyEvent.VK_RIGHT, "cat_frames.png", "meow.wav");
	
		facingLeft = true;
		
		animationWalkingFrames = new BufferedImage[walkingFrames_n];
		for (int j = 0; j < animationWalkingFrames.length; j++) {
			animationWalkingFrames[j] = flipImageOverVertical(animalSheetBufferedImage.getSubimage(0 + 64 * j, 0 + 64 * 1, 64, 64));
		}
		animationJumpingFrames = new BufferedImage[jumpingFrames_n];
		for (int j = 0; j < animationJumpingFrames.length; j++) {
			animationJumpingFrames[j] = flipImageOverVertical(animalSheetBufferedImage.getSubimage(0 + 64 * j, 0 + 64 * 3, 64, 64));
		}
		animationProjectileFrames = new BufferedImage[throwingProjectileFrames_n];
		for (int j = 0; j < animationProjectileFrames.length; j++) {
			animationProjectileFrames[j] = flipImageOverVertical(animalSheetBufferedImage.getSubimage(0 + 64 * j, 0 + 64 * 5, 64, 64));
		}
		animalBufferedImage = animationWalkingFrames[0];
	}
}