Files
CrystalPoint/CrystalPoint.h
T
2016-06-05 23:49:06 +02:00

42 lines
618 B
C++

#pragma once
class WorldHandler;
class SoundSystem;
class Player;
#include "Vector.h"
#include "SoundSystem.h"
class KeyboardState
{
public:
bool keys[256];
bool special[256];
bool control, shift, alt;
KeyboardState();
};
class CrystalPoint
{
public:
void init();
void draw();
void update();
WorldHandler* worldhandler;
Player* player;
static int width, height;
KeyboardState keyboardState;
KeyboardState prevKeyboardState;
Vec2f mouseOffset;
Vec2f mousePosition;
float lastFrameTime;
static SoundSystem& GetSoundSystem() { return sound_system; }
private:
static SoundSystem sound_system;
};