[Xconq-cvs] xconq/src/include/gdl kernel.h,,1.1,1.2 ui.h,,1.1,1.2
Brought to you by:
elijah_meeks,
matthewskala
From: Eric M. <eri...@us...> - 2006-05-30 02:50:23
|
Update of /cvsroot/xconq/xconq/src/include/gdl In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv14143 Modified Files: kernel.h ui.h Log Message: Update forward decls for kernel and UI. Index: ui.h =================================================================== RCS file: /cvsroot/xconq/xconq/src/include/gdl/ui.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ui.h 15 May 2006 00:08:16 -0000 1.1 --- ui.h 30 May 2006 02:50:19 -0000 1.2 *************** *** 34,38 **** #define XCONQ_GDL_UI_H ! #include "gdl/base.h" NAMESPACE_XCONQ_BEGIN --- 34,55 ---- #define XCONQ_GDL_UI_H ! #include "gdl/lisp.h" ! #include "gdl/unit/unit_FWD.h" ! #include "gdl/side/side_FWD.h" ! ! // Global Constants: Display Updates ! ! //! Display Update: always ! #define UPDATE_ALWAYS 1 ! //! Display Update: adjacent ! #define UPDATE_ADJ 2 ! //! Display Update: cover ! #define UPDATE_COVER 4 ! //! Display Update: termperature ! #define UPDATE_TEMP 8 ! //! Display Update: clouds ! #define UPDATE_CLOUDS 16 ! //! Display Update: winds ! #define UPDATE_WINDS 32 NAMESPACE_XCONQ_BEGIN *************** *** 41,44 **** --- 58,64 ---- // Global Functions: Notification + //! Notify given side of something via UI. + extern void notify(Side *side, char *str, ...); + //! Announce amount of progress in reading a GDL form. extern void announce_read_progress(void); *************** *** 52,57 **** extern void end_printing_forms(void); NAMESPACE_GDL_END NAMESPACE_XCONQ_END ! #endif // ifndef XCONQ_GDL_UI_H \ No newline at end of file --- 72,86 ---- extern void end_printing_forms(void); + // Global Functions: Status Displays + + //! Ask UI to update display of given unit. + extern void update_unit_display(Side *side, Unit *unit, int rightnow); + //! Ask UI to update display of given cell. + extern void update_cell_display(Side *side, int x, int y, int flags); + //! Flush display buffers for given side. + extern void flush_display_buffers(Side *side); + NAMESPACE_GDL_END NAMESPACE_XCONQ_END ! #endif // ifndef XCONQ_GDL_UI_H Index: kernel.h =================================================================== RCS file: /cvsroot/xconq/xconq/src/include/gdl/kernel.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** kernel.h 15 May 2006 00:08:16 -0000 1.1 --- kernel.h 30 May 2006 02:50:19 -0000 1.2 *************** *** 34,38 **** #define XCONQ_GDL_KERNEL_H ! #include "gdl/base.h" NAMESPACE_XCONQ_BEGIN --- 34,38 ---- #define XCONQ_GDL_KERNEL_H ! #include "gdl/lisp.h" NAMESPACE_XCONQ_BEGIN *************** *** 44,47 **** --- 44,52 ---- extern int numremotes; + // Global Variables: Game State + + //! True, if at end of game. + extern int endofgame; + // Global Variables: Notification *************** *** 57,59 **** NAMESPACE_XCONQ_END ! #endif // ifndef XCONQ_GDL_KERNEL_H \ No newline at end of file --- 62,64 ---- NAMESPACE_XCONQ_END ! #endif // ifndef XCONQ_GDL_KERNEL_H |