import java.awt.event.KeyEvent;
import java.awt.image.BufferedImage;

public class Dog extends Animal {
	public Dog (int x, int y) {
		super(x, y, KeyEvent.VK_W, KeyEvent.VK_A, KeyEvent.VK_S, KeyEvent.VK_D, "dog_frames.png", "dog_jump_1.wav");
		
		facingLeft = false;
		
		animationWalkingFrames = new BufferedImage[walkingFrames_n];
		for (int j = 0; j < animationWalkingFrames.length; j++) {
			animationWalkingFrames[j] = 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] = 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] = 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] = 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(30*2 , 32*2);
		centerOffest[1] = new Point(31*2 , 43*2);
		centerOffest[2] = new Point(31*2 , 52*2);
		
		radius[0] = 8*2;
		radius[1] = 7*2;
		radius[2] = 5*2;
	}
}