-/* $Id: empire.c,v 1.4 2000/07/28 05:12:51 esr Exp esr $ - (c) Copyright 1987, 1988 Chuck Simmons */
+/* $Id: empire.c,v 1.5 2006/07/25 15:59:54 esr Exp esr $ - (c) Copyright 1987, 1988 Chuck Simmons */
/*
* Copyright (C) 1987, 1988 Chuck Simmons
*/
#include <stdio.h>
-#include <curses.h>
#include "empire.h"
#include "extern.h"
void c_examine(), c_movie();
+/*
+ * 03a 01Apr88 aml .Hacked movement algorithms for computer.
+ * 02b 01Jun87 aml .First round of bug fixes.
+ * 02a 01Jan87 aml .Translated to C.
+ * 01b 27May85 cal .Fixed round number update bug. Made truename simple.
+ * 01a 01Sep83 cal .Taken from a Decus tape
+ */
+
void
empire () {
void do_command();
rndini (); /* init random number generator */
clear_screen (); /* nothing on screen */
- (void) move (7, 0);
- version ();
+ pos_str (7, 0, "EMPIRE, Version 5.00 site Amdahl 1-Apr-1988",0,0,0,0,0,0,0,0);
pos_str (8, 0, "Detailed directions are in EMPIRE.DOC\n",0,0,0,0,0,0,0,0);
(void) refresh ();
}
else {
prompt (0,0,0,0,0,0,0,0,0); /* blank top line */
- (void) refresh ();
+ void redisplay();
prompt ("Your orders? ",0,0,0,0,0,0,0,0);
order = get_chx (); /* get a command */
do_command (order);
if (resigned || debug) replay_movie ();
else error ("You cannot watch movie until computer resigns.",0,0,0,0,0,0,0,0);
break;
-
+
case 'Z': /* print compressed map */
- (void) clear ();
print_zoom (user_map);
- (void) refresh ();
break;
case '\014': /* redraw the screen */
-/* $Id: extern.h,v 1.7 2006/07/25 15:19:49 esr Exp esr $ - (c) Copyright 1987, 1988 Chuck Simmons */
+/* $Id: extern.h,v 1.8 2006/07/25 15:59:54 esr Exp esr $ - (c) Copyright 1987, 1988 Chuck Simmons */
/*
* Copyright (C) 1987, 1988 Chuck Simmons
int vmap_at_sea (view_map_t *vmap, long loc);
int rmap_at_sea (long loc);
-void kill_display (); /* display routines */
+/* display routines */
+void redisplay();
+void kill_display ();
void sector_change ();
int cur_sector ();
long cur_cursor ();
void ttinit ();
void assert (char *expression, char *file, int line);
void empend ();
-void version ();
char upper (char c);
void tupper (char *str);
void check ();
-/* $Id: util.c,v 1.4 2006/07/25 15:20:30 esr Exp esr $ - (c) Copyright 1987, 1988 Chuck Simmons */
+/* $Id: util.c,v 1.5 2006/07/25 15:59:54 esr Exp esr $ - (c) Copyright 1987, 1988 Chuck Simmons */
/*
* Copyright (C) 1987, 1988 Chuck Simmons
exit (0);
}
-/*
- * 03a 01Apr88 aml .Hacked movement algorithms for computer.
- * 02b 01Jun87 aml .First round of bug fixes.
- * 02a 01Jan87 aml .Translated to C.
- * 01b 27May85 cal .Fixed round number update bug. Made truename simple.
- * 01a 01Sep83 cal .Taken from a Decus tape
- */
-
-void
-version ()
-{
- (void) addstr ("EMPIRE, Version 5.00 site Amdahl 1-Apr-1988");
-}
/*
Here is a little routine to perform consistency checking on the