/*   Copyright 2005,2006 Paweł Niegowski
*
*    This file is part of Fenrir.
*
*    Fenrir is free software; you can redistribute it and/or modify
*    it under the terms of the GNU General Public License as published by
*    the Free Software Foundation; either version 2 of the License, or
*    (at your option) any later version.
*
*    Fenrir is distributed in the hope that it will be useful,
*    but WITHOUT ANY WARRANTY; without even the implied warranty of
*    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*    GNU General Public License for more details.
*
*    You should have received a copy of the GNU General Public License
*    along with Fenrir; if not, write to the Free Software
*    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
*/

#ifndef MAIN_H_INCLUDE
#define MAIN_H_INCLUDE
#include <allegro.h>

#define KILL_DELAY 300
enum GAME_STATE
{
 GAME_LOGIN,
 GAME_PLAY,
 GAME_EDIT
};

enum {
DATA_LOGO,
DATA_FONT,
DATA_CORNERS,
DATA_CHAT,
DATA_ARROW,
DATA_TAB,
DATA_NULLITEM,
DATA_BUTTONS,
DATA_NOITEM
};

extern DATAFILE *maindata;

extern FONT *default_font;
extern int font_width, font_height;
extern volatile int timer;
extern GAME_STATE game_state;
extern volatile bool shutdown_flag;
extern bool vsynced;
extern BITMAP *buf;
extern BITMAP *page[2];
extern int current_page;
extern int conf_fullscreen,conf_lowres,conf_sky,conf_antialiasing,conf_vsync, conf_triplebuffer, conf_sleep;

void main_update_screen();
#endif
