Main Page | Namespace List | Class List | File List | Namespace Members | Class Members | File Members

header.h File Reference

#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>

Go to the source code of this file.

Defines

#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

Enumerations

enum  mode { NONE, FORM, GAME }

Functions

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 ()
cazewhereami (int x, int y)
cazedragdrop (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
SoFontfont
SoFontsfont
piecearmy [82]
field board
field camp
field cimetery
bool opt_doublebuffering
bool opt_fullscreen
bool opt_nowindow
TCPsocket csck


Define Documentation

#define _  )     (gettext((char*)s))
 

#define _n  )     s
 

#define abs  )     (x>0?(x):-(x))
 

#define LSL   256
 

#define PACKAGE   "xtratego"
 

#define SSL   32
 

#define VERSION   "0.2"
 

#define VERSION_NAME   "Living Daylight"
 


Enumeration Type Documentation

enum mode
 

Enumeration values:
NONE 
FORM 
GAME 


Function Documentation

void bye int  ret  ) 
 

void cstatus  ) 
 

void debug char *  msg  ) 
 

void Display SDL_Surface *  surf,
SDL_Rect *  r_in,
SDL_Rect *  r_out
 

void displaycfg  ) 
 

caze* dragdrop caze c  ) 
 

void formedit  ) 
 

void game bool  server  ) 
 

void initarmies  ) 
 

void initchildfilter  ) 
 

void initcursor  ) 
 

void initdirs  ) 
 

void initfilter  ) 
 

void initfonts  ) 
 

void initsdl  ) 
 

void load_formation char *  file  ) 
 

void loadcfg  ) 
 

SDL_Surface* LoadImage char *  ImageFile,
SDL_Surface *  surf,
bool  isfont = false
 

void loadimages  ) 
 

void new_formation  ) 
 

void restorescreen  ) 
 

void save_formation char *  file  ) 
 

void savecfg  ) 
 

void savescreen  ) 
 

caze* whereami int  x,
int  y
 

void wstatus const char *  msg,
bool  append = false
 


Variable Documentation

Uint32 amask
 

int argc
 

char* argv[]
 

piece* army[82]
 

Uint32 bmask
 

field board
 

field camp
 

field cimetery
 

TCPsocket csck
 

SDL_Cursor curs
 

char DATDIR[LSL]
 

bool DEBUGG
 

char FNTDIR[LSL]
 

SoFont* font
 

mode game_mode
 

Uint32 gmask
 

char HOMDIR[LSL]
 

char IMGDIR[LSL]
 

char LOCDIR[LSL]
 

bool opt_doublebuffering
 

bool opt_fullscreen
 

bool opt_nowindow
 

char PRGDIR[LSL]
 

SDL_Rect r_bg
 

SDL_Rect r_caze_i
 

SDL_Rect r_logo_i
 

SDL_Rect r_logo_o
 

SDL_Rect r_status
 

Uint32 rmask
 

SDL_Surface* s_armies
 

SDL_Surface* s_bg
 

SDL_Surface* s_board
 

SDL_Surface* s_board_grid
 

SDL_Surface* s_button
 

SDL_Surface* s_camp
 

SDL_Surface* s_camp_grid
 

SDL_Surface* s_cimetery
 

SDL_Surface* s_cimetery_grid
 

SDL_Surface* s_logo
 

SDL_Surface* s_piece
 

SDL_Surface* screen
 

SDL_Surface* screenbak
 

SoFont* sfont
 

char SNDDIR[LSL]
 




Little Neo, 2005 (+ doxygen)

  xtratego

  Home