2014-12-11 21:14:23 +01:00
|
|
|
#ifndef GAME_H
|
|
|
|
#define GAME_H
|
|
|
|
|
|
|
|
#include "defines.h"
|
|
|
|
#include "board.h"
|
|
|
|
|
|
|
|
static const char header[] = "2048";
|
|
|
|
static struct process_table_entry proc_info = {0};
|
|
|
|
|
|
|
|
#define NEW_GAME_BUTTON (0xFF)
|
|
|
|
|
|
|
|
// Start a new game
|
|
|
|
void game_init();
|
|
|
|
|
2014-12-14 18:05:58 +01:00
|
|
|
// Exit game
|
|
|
|
void game_exit();
|
|
|
|
|
2014-12-11 21:14:23 +01:00
|
|
|
// Redraw game content
|
|
|
|
void game_redraw();
|
|
|
|
|
|
|
|
// Move Up
|
|
|
|
void game_move_up();
|
|
|
|
|
|
|
|
// Move Down
|
|
|
|
void game_move_down();
|
|
|
|
|
|
|
|
// Move Left
|
|
|
|
void game_move_left();
|
|
|
|
|
|
|
|
// Move Right
|
|
|
|
void game_move_right();
|
|
|
|
|
|
|
|
#endif // GAME_H
|