You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
716 B
32 lines
716 B
5 years ago
|
#ifndef _DEFGAME
|
||
|
#define _DEFGAME
|
||
|
|
||
4 years ago
|
#include "environment.h"
|
||
|
#include "datastructures/datatypes.h"
|
||
4 years ago
|
#include "vect.h"
|
||
5 years ago
|
#include "garbo.h"
|
||
4 years ago
|
#include "controlscheme.h"
|
||
4 years ago
|
#include "c-colours/colours.h"
|
||
|
#include "types.h"
|
||
|
#include "draw.h"
|
||
4 years ago
|
|
||
|
extern GlobWorld world;
|
||
4 years ago
|
extern int level;
|
||
4 years ago
|
|
||
4 years ago
|
void handle_input_event(SDL_Event event);
|
||
5 years ago
|
|
||
4 years ago
|
// add a motor to the world
|
||
|
void add_motor(Body *thing, double x, double y);
|
||
5 years ago
|
|
||
4 years ago
|
bool get_motor_active(Body *thing, int i);
|
||
|
|
||
4 years ago
|
/* array of all the things in the world and their kinds */
|
||
|
extern void startgame(SDL_Renderer * ren) ;
|
||
|
extern void process_keydown(SDL_Keysym key);
|
||
|
extern void process_keyup(SDL_Keysym key);
|
||
|
extern void step(int interval);
|
||
|
extern player_st player;
|
||
4 years ago
|
extern int level;
|
||
5 years ago
|
|
||
5 years ago
|
#endif
|