/+junk/c_sdl_joypad_ducktape

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/%2Bjunk/c_sdl_joypad_ducktape

« back to all changes in this revision

Viewing changes to Game.h

  • Committer: Gustav Hartvigsson
  • Date: 2014-01-09 20:50:51 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20140109205051-4j1veaw5fwux8591
created a generic error print function that should print nice looking
error messages, supports formating...
Not tested.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* c-basic-offset: 2; tab-width: 2; indent-tabs-mode: nil
2
 
 * vi: set shiftwidth=2 tabstop=2 expandtab:
3
 
 * :indentSize=2:tabSize=2:noTabs=true:
4
 
 */
5
 
 
6
1
#ifndef __H_GAME__
7
2
#define __H_GAME__
8
3
 
14
9
//#include "JSParser.h"
15
10
#include "game_utils.h"
16
11
 
17
 
/*
 
12
/**
18
13
 * This file, as the rest of the project is under MIT license.
19
14
 * see http://opensource.org/licenses/MIT
20
15
 *
27
22
 
28
23
void quit (int rc);
29
24
 
30
 
typedef struct Game {
 
25
typedef struct _Game Game;
 
26
 
 
27
struct _Game {
31
28
  SDL_Event event;
32
29
  SDL_Point mouse_delta;
33
30
  bool mouse_pressed;
39
36
  SDL_GameController * game_controller;
40
37
  MousePointer * mouse;
41
38
  GameButton * button;
42
 
} Game;
 
39
};
43
40
 
44
41
Game * game_new ();
45
42
void game_process_events (Game * self);