This is the mail archive of the
xconq-cvs@sourceware.cygnus.com
mailing list for the Xconq project.
xconq/ /ChangeLog ernel/actions.c ernel/ai.c e ...
- To: xconq-cvs at sourceware dot cygnus dot com
- Subject: xconq/ /ChangeLog ernel/actions.c ernel/ai.c e ...
- From: shebs at sourceware dot cygnus dot com
- Date: 26 Oct 1999 15:32:10 -0000
CVSROOT: /cvs/xconq
Module name: xconq
Changes by: shebs@sourceware.cygnus.com 99/10/26 08:32:10
Modified files:
. : ChangeLog
kernel : actions.c ai.c combat.c init.c mplayer.c
nlang.c plan.c ps.c read.c run.c run2.c score.c
side.c side.h ui.c ui.h unit.c unix.c write.c
mac : macconq.c macdesign.c macmap.c macmouse.c
macrow.c
tcltk : tkcmd.c tkconq.h tkconq.tcl tkinit.c tkmain.c
tkmap.c
x11 : xcmd.c xmap.c xtmain.c
Log message:
Reorganize see-all handling, add separate concept of show-all
that only affects display.
* side.h (Side show_all): New field.
(Side may_set_show_all): Rename from may_set_see_all.
* ui.h (VP show_all): Rename from see_all.
* init.c (init_all_views): Use new field, don't set all_see_all.
* actions.c, ai.c. combat.c, mplayer.c, nlang.c, plan.c, ps.c,
read.c, run.c, run2.c, score.c, side.c, side.h, ui.c, unit.c,
write.c: Use g_see_all() or side->see_all instead of all_see_all,
side->may_set_show_all instead of side->may_set_see_all.
* macconq.c, macdesign.c, macmap.c, macmouse.c, macrow.c: Ditto.
* tkcmd.c, tkmain.c, tkmap.c: Ditto.
* xcmd.c, xmap.c, xtmain.c: Ditto.
* run.c (end_the_game): Set side->show_all.
* side.c (become_designer, become_nondesigner): Ditto.
* tkcmd.c (aux_design, really_do_design): Call set_show_all and
update_show_all_info.
* tkconq.tcl (may_set_show_all): Rename from may_set_see_all.
(default_map_options): New global array, use everywhere instead
of map_options.
(map_options): Index by map widget also.
(update_view_controls_info): Don't set may_set_show_all.
(update_show_all_info, update_show_all): New procs.
* tkinit.c (init_display): Update show_all info.
* tkmain.c (update_turn_display): Set show_all.
* tkmap.c (m_terrain_visible, m_units_visible): New macros, use
everywhere.
(set_show_all): New function.
* combat.c (do_overrun_action): Fix call to do_fire_at_action
to not shoot at self(!).
* side.c (paint_view_1): Add special case to do exact view.
* unix.c (score_file_pathname): Look for env var XCONQ_SCORES
instead of XCONQSCORES.
* tkconq.h (UI told_outcome): Remove, never used.
* tkmain.c (told_outcome): Make static local.
* tkconq.tcl (disable_move_mode): New proc.
(popup_game_over_dialog): Use it.
(popup_design_palette): Add view painting button.
(make_view_paint_frame): New proc.
(make_terrain_paint_frame): Increase size of terrain samples.
(make_people_paint_frame, make_control_paint_frame): Turn on
people/control display in all maps.
* tkinit.c (init_bitmaps): Add paint_view bitmap.
* tkmap.c (handle_designer_mouse_down, paint_on_drag): Rewrite
view painting.