Update of /cvsroot/galaxyng/NG/Source
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv10967
Modified Files:
Tag: Refactor_Baseline
cmd_report.c cmd_run.c process.c usage.c
Log Message:
baseline
Index: cmd_report.c
===================================================================
RCS file: /cvsroot/galaxyng/NG/Source/cmd_report.c,v
retrieving revision 1.21.2.3
retrieving revision 1.21.2.4
diff -C2 -d -r1.21.2.3 -r1.21.2.4
*** cmd_report.c 4 Jul 2007 23:12:42 -0000 1.21.2.3
--- cmd_report.c 11 Nov 2007 11:56:40 -0000 1.21.2.4
***************
*** 5,10 ****
* CMD_report -- create a copy of a turn report.
* SYNOPSIS
* ./galaxyng -report <gamename> <player> <turnnumber>
- * int CMD_report(int argc, char **argv)
* FUNCTION
* Recreate a turn report of a given turn.
--- 5,13 ----
* CMD_report -- create a copy of a turn report.
* SYNOPSIS
+ */
+ int CMD_report(int argc, char **argv)
+ /*
+ * USAGE
* ./galaxyng -report <gamename> <player> <turnnumber>
* FUNCTION
* Recreate a turn report of a given turn.
***************
*** 15,20 ****
*/
- int
- CMD_report( int argc, char **argv )
{
char *logName =
--- 18,21 ----
Index: process.c
===================================================================
RCS file: /cvsroot/galaxyng/NG/Source/process.c,v
retrieving revision 1.68.2.3
retrieving revision 1.68.2.4
diff -C2 -d -r1.68.2.3 -r1.68.2.4
*** process.c 4 Jul 2007 23:12:42 -0000 1.68.2.3
--- process.c 11 Nov 2007 11:56:41 -0000 1.68.2.4
***************
*** 1909,1912 ****
--- 1909,1913 ----
FILE *ordersFile;
+ #if 0
char *rm_notify;
***************
*** 1916,1919 ****
--- 1917,1921 ----
ssystem( rm_notify );
free( rm_notify );
+ #endif
plog( LPART, "Reading orders from file %s\n", ordersFileName );
Index: cmd_run.c
===================================================================
RCS file: /cvsroot/galaxyng/NG/Source/cmd_run.c,v
retrieving revision 1.5.2.3
retrieving revision 1.5.2.4
diff -C2 -d -r1.5.2.3 -r1.5.2.4
*** cmd_run.c 4 Jul 2007 23:12:42 -0000 1.5.2.3
--- cmd_run.c 11 Nov 2007 11:56:40 -0000 1.5.2.4
***************
*** 5,9 ****
* CMD_run -- run turn and send turn reports
* SYNOPSIS
! * ./galaxyng -run <game name> <file with all orders>
* FUNCTION
* Run an turn, Compute the highscore list, and send the turn reports
--- 5,14 ----
* CMD_run -- run turn and send turn reports
* SYNOPSIS
! */
! int
! CMD_run( int argc, char **argv )
! /*
! * USAGE
! * ./galaxyng -run <game name> <file with all orders> [turn]
* FUNCTION
* Run an turn, Compute the highscore list, and send the turn reports
***************
*** 30,35 ****
*/
- int
- CMD_run( int argc, char **argv )
{
int result;
--- 35,38 ----
Index: usage.c
===================================================================
RCS file: /cvsroot/galaxyng/NG/Source/usage.c,v
retrieving revision 1.10.2.1
retrieving revision 1.10.2.2
diff -C2 -d -r1.10.2.1 -r1.10.2.2
*** usage.c 21 Jun 2007 23:02:03 -0000 1.10.2.1
--- usage.c 11 Nov 2007 11:56:41 -0000 1.10.2.2
***************
*** 13,22 ****
printf( "Usage: galaxyng <command> <parameters> <options>\n"
"\nCommands Available:\n"
! " General Commands\n"
! " -template <game name> <number of players>\n"
! " -create <specifcation file>\n"
! " -mail0 <game name>\n"
! " -check\n"
! " -run <game name> <file with all orders> [turn]\n"
" -score <game name> [turn]\n"
" -toall <game name>\n"
--- 13,36 ----
printf( "Usage: galaxyng <command> <parameters> <options>\n"
"\nCommands Available:\n"
! " -template <game name> <number of players>\n"
! " -create <specifcation file>\n"
! " -mail0 <game name>\n"
! " -check <game name> <race name>\n"
! " -run <game name> <file with all orders> [turn]\n"
! " -report <game name> <race name> <turnnumber>\n"
! " -players <game name>\n"
! );
! printf( "\nExplanation:\n"
! " -template - create a template .glx file for use with -create.\n"
! " -create - create a new game.\n"
! " -mail0 - store the turn-0-reports in reports/<game name>.\n"
! " -check - check incoming orders, orders are read from stdin.\n" );
! printf( " -run - run a game and store the turn-reports to reports/<game name>.\n"
! " -score - creates highscore list in HTML format.\n"
! " -players - list address and password of all players.\n"
! " -report - creates a particular turn-report which is written to stdout.\n" );
!
! /* TODO Re-enable once done */
! #if 0
" -score <game name> [turn]\n"
" -toall <game name>\n"
***************
*** 75,77 ****
--- 89,93 ----
" b) the GM specified amount of time has expired\n"
" -players - list address and password of all players.\n" );
+ #endif
+
}
|