static char lastadd;
-void handle_setkeys(char *newKeys)
+static void handle_setkeys(char *newKeys)
{
int i, k, ch;
char used[256];
exit(1);
}
-void Usage(void)
+static void Usage(void)
{
Header();
fprintf(stderr,
" -t, --team <team>\tJoin a team (don't receive lines from your teammates)\n"
" -l, --level <lvl>\tBegin at a higher level (can be used as handicap)\n"
" -k, --keys <keys>\tRemap keys (default is \"%s\" for cursors)\n"
- "\n"
- " -r, --robot <cmd>\tExecute program to control the game instead of keyboard\n"
- " -F, --fair-robot\tUse fair robot interface\n"
"\n",
DEFAULT_PORT, DEFAULT_KEYS
);
}
-void handle_arg(char tag, char *value)
+static void handle_arg(char tag, char *value)
{
switch (tag) {
case 'a': //ascii
}
}
-void handle_conffile(char *filename)
+static void handle_conffile(char *filename)
{
FILE *file_in;
char buf[513];
} //defaults
}
-int game_piece(int scr, char shape)
+static int game_piece(int scr, char shape)
{
Players[scr].score.pieces++;
{
return 1;
}
-void game_setpaused(void)
+static void game_setpaused(void)
{ //check whether anyone paused the game
int i;
paused |= (Players[i].flags & SCF_paused) != 0;
}
-void game_reset(void)
+static void game_reset(void)
{ //init new game
int i;
InitFields();
}
-void game_clear(int scr)
+static void game_clear(int scr)
{ //check for full lines
int linesCleared;
int linevalues[] = { 40, 100, 400, 1200, }; //= 50*lines! - 10*(lines==1)
} //lines cleared
}
-void game_loop(void)
+static void game_loop(void)
{
bool changed = 0;
short gameStatus = 2; //2=loop; 1=new piece; 0=quit