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));
		}
		animationThrowingProjectileFrames = new BufferedImage[throwingProjectileFrames_n];
		for (int j = 0; j < animationThrowingProjectileFrames.length; j++) {
			animationThrowingProjectileFrames[j] = flipImageOverVertical(animalSheetBufferedImage.getSubimage(0 + 64 * j, 0 + 64 * 5, 64, 64));
		}
		animationFallingDownFrames = new BufferedImage[fallingDownFrames_n];
		for (int j = 0; j < animationFallingDownFrames.length; j++) {
			animationFallingDownFrames[j] = flipImageOverVertical(animalSheetBufferedImage.getSubimage(0 + 64 * j, 0 + 64 * 4, 64, 64));
		}
		animalBufferedImage = animationWalkingFrames[0];
		
		centerOffest = new Point[3];
		radius = new int[3];
		
		centerOffest[0] = new Point(128 - (30*2), 32*2);
		centerOffest[1] = new Point(128 - (31*2), 43*2);
		centerOffest[2] = new Point(128 - (31*2), 52*2);
		
		radius[0] = 8*2;
		radius[1] = 7*2;
		radius[2] = 5*2;
	}
}