This is the mail archive of the
xconq-cvs@sources.redhat.com
mailing list for the Xconq project.
xconq ./ChangeLog tcltk/tkcmd.c tcltk/tkinit.c ...
- To: xconq-cvs at sourceware dot cygnus dot com
- Subject: xconq ./ChangeLog tcltk/tkcmd.c tcltk/tkinit.c ...
- From: shebs at sourceware dot cygnus dot com
- Date: 11 Oct 2000 15:33:25 -0000
CVSROOT: /cvs/xconq
Module name: xconq
Changes by: shebs@sourceware.cygnus.com 2000-10-11 08:33:25
Modified files:
. : ChangeLog
tcltk : tkcmd.c tkinit.c tkmain.c tkmap.c
Log message:
Modify tcl/tk interface command handling to test for unit
ownership better and to allow enemy unit selection after
game is over, also add grid display as overlay.
* tkcmd.c (unit_still_ok, during_game_only, require_unit,
require_own_unit_during_game): New functions, use everywhere
instead of macros DURING_GAME_ONLY, REQUIRE_UNIT.
(aux_add_terrain_2, etc): Use unit_still_ok, simplify control.
* tkmain.c: Use side->id instead of side_number() everywhere.
(tk_run_game_idle): Don't clear enemy unit selection if at end of
game.
(set_current_unit): Allow selection of any unit at end of game.
* tkinit.c (grid_matches_unseen): New global.
(set_optional_colors): Set grid_color and unseen_color from
GDL globals.
* tkmap.c (draw_area_background): Always use unseen color.
(draw_terrain_grid): New function, draws grid as lines.
(draw_map_overhead): Call it.
(draw_unseen_fuzz): Set foreground and fill style explicitly.
(draw_contours): Ditto, also line width.