package model.state;

import java.awt.Graphics2D;
import java.awt.event.KeyEvent;

import model.GameStateManager;

public class EndState extends State {

	public EndState(GameStateManager gsm) {
		super("end", gsm);
	}

	@Override
	public void init() {
	}

	@Override
	public void exit() {
	}

	@Override
	public void update() {
	}

	@Override
	public void paint(Graphics2D g2) {
		g2.drawString("GAME OVER", 100, 100);
	}

	@Override
	public void keyPressed(KeyEvent e) {
		// TODO Auto-generated method stub

	}

	@Override
	public void keyReleased(KeyEvent e) {
		if (e.getKeyCode() == KeyEvent.VK_ENTER) {
			gsm.setState("menu");
		}

	}

	@Override
	public void keyTyped(KeyEvent e) {
		// TODO Auto-generated method stub

	}

}
