First implementation of game logic and control
This commit is contained in:
@ -11,6 +11,7 @@
|
||||
|
||||
#include <SDL/SDL.h>
|
||||
#include "mainevent.h"
|
||||
#include "graph.h"
|
||||
|
||||
class GameCore : public MainEvent
|
||||
{
|
||||
@ -21,7 +22,7 @@ class GameCore : public MainEvent
|
||||
protected:
|
||||
// event handlers
|
||||
void on_exit();
|
||||
|
||||
void on_lbutton_down(int x, int y);
|
||||
|
||||
private:
|
||||
bool init();
|
||||
@ -37,6 +38,9 @@ class GameCore : public MainEvent
|
||||
// textures to draw
|
||||
SDL_Surface* background;
|
||||
SDL_Surface* node;
|
||||
|
||||
// data
|
||||
Graph graph;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user