#include <locale.h>
#include <libintl.h>
#include "iostream"
#include "fstream"
#include "string"
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <signal.h>
#include <pthread.h>
#include <sofont.h>
#include <SDL.h>
#include <SDL_audio.h>
#include <SDL_mixer.h>
#include <SDL_image.h>
#include <SDL_net.h>
Aller au code source de ce fichier.
Macros | |
#define | PACKAGE "xtratego" |
#define | VERSION "0.2" |
#define | VERSION_NAME "Living Daylight" |
#define | _(s) (gettext((char*)s)) |
#define | _n(s) s |
#define | abs(x) (x>0?(x):-(x)) |
#define | SSL 32 |
#define | LSL 256 |
Énumérations | |
enum | mode { NONE, FORM, GAME } |
Fonctions | |
void | initdirs () |
void | initarmies () |
void | initsdl () |
void | initchildfilter () |
void | initfilter () |
void | initcursor () |
void | loadimages () |
void | initfonts () |
void | debug (char *msg) |
SDL_Surface * | LoadImage (char *ImageFile, SDL_Surface *surf, bool isfont=false) |
void | Display (SDL_Surface *surf, SDL_Rect *r_in, SDL_Rect *r_out) |
void | savescreen () |
void | restorescreen () |
caze * | whereami (int x, int y) |
caze * | dragdrop (caze *c) |
void | wstatus (const char *msg, bool append=false) |
void | cstatus () |
void | bye (int ret) |
void | formedit () |
void | new_formation () |
void | load_formation (char *file) |
void | save_formation (char *file) |
void | loadcfg () |
void | savecfg () |
void | displaycfg () |
void | game (bool server) |
Variables | |
int | argc |
char * | argv [] |
mode | game_mode |
bool | DEBUGG |
char | LOCDIR [LSL] |
char | PRGDIR [LSL] |
char | DATDIR [LSL] |
char | IMGDIR [LSL] |
char | SNDDIR [LSL] |
char | FNTDIR [LSL] |
char | HOMDIR [LSL] |
SDL_Rect | r_bg |
SDL_Rect | r_logo_i |
SDL_Rect | r_logo_o |
SDL_Rect | r_caze_i |
SDL_Rect | r_status |
SDL_Surface * | screen |
SDL_Surface * | screenbak |
SDL_Surface * | s_bg |
SDL_Surface * | s_button |
SDL_Surface * | s_logo |
SDL_Surface * | s_board |
SDL_Surface * | s_board_grid |
SDL_Surface * | s_armies |
SDL_Surface * | s_piece |
SDL_Surface * | s_camp |
SDL_Surface * | s_camp_grid |
SDL_Surface * | s_cimetery |
SDL_Surface * | s_cimetery_grid |
SDL_Cursor | curs |
Uint32 | rmask |
Uint32 | gmask |
Uint32 | bmask |
Uint32 | amask |
SoFont * | font |
SoFont * | sfont |
piece * | army [82] |
field | board |
field | camp |
field | cimetery |
bool | opt_doublebuffering |
bool | opt_fullscreen |
bool | opt_nowindow |
TCPsocket | csck |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|