First implementation of game logic and control

This commit is contained in:
2011-06-22 17:57:44 -04:00
parent 2aadb9ad7e
commit fc08adcade
5 changed files with 64 additions and 9 deletions

View File

@ -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