#pragma once

class Player;
class StateHandler;
#include "Vector.h"
#include <GL\freeglut.h>

class KeyboardState
{
public:
	bool keys[256];
	bool special[256];
	bool control, shift, alt;

	KeyboardState();
};

class Meinkraft
{
private:
	void loadTexture(void);
public:
	void init();
	void draw();
	void update();

	Player* player;
	StateHandler* statehandler;

	static int width, height;
	KeyboardState keyboardState;
	KeyboardState prevKeyboardState;

	Vec2f mouseOffset;
	Vec2f mousePosition;

	float lastFrameTime;

	static GLuint texture;
};