public inbox for xconq-cvs@sourceware.org
help / color / mirror / Atom feed
* xconq ./ChangeLog kernel/ai.h kernel/ai.c kern ...
@ 2000-11-27  7:33 shebs
  0 siblings, 0 replies; only message in thread
From: shebs @ 2000-11-27  7:33 UTC (permalink / raw)
  To: xconq-cvs

CVSROOT:	/cvs/xconq
Module name:	xconq
Changes by:	shebs@sources.redhat.com	2000-11-27 07:33:22

Modified files:
	.              : ChangeLog 
	kernel         : ai.h ai.c config.h iplayer.c mplayer.c 
	                 oplayer.c 
	mac            : macmenus.c 

Log message:
	Remove wired-in list of AI types.
	* config.h (numaitypes): Remove.
	(MAXAITYPES): New macro.
	* ai.h (enum AIType): Remove.
	(AI_ops): Move back to here from conq.h.
	(Strategy type): Remove field.
	* ai.c (mplayer_ops, iplayer_ops, oplayer_ops): Remove.
	(numaitypes): New global.
	(all_ai_ops): Make static array of ops, instead of pointers to ops.
	(init_ai_types): Call registration functions.
	(ai_type_name): Re-enable.
	(next_ai_type_name, ai_type_help, etc): Fix refs to all_ai_ops.
	(next_ai_type_name, init_ai, etc): Fix AI type iteration.
	* iplayer.c (register_iplayer): New function.
	(iplayer_ops): Remove.
	(iplayer_create_strategy): Don't init type.
	* mplayer.c (register_mplayer): New function.
	(mplayer_ops): Remove.
	(mplayer_create_strategy): Don't init type.
	* oplayer.c (register_oplayer): New function.
	(oplayer_ops): Remove.
	(oplayer_create_strategy): Don't init type.
	
	* macmenus.c (build_ai_type_menu): Use next_ai_type_name to
	iterate over AI types.
	(adjust_menus): Iterate over AI type menu entries instead of
	using numaitypes.
	
	* ai.c (ai_go_after_victim, etc): Don't assume mplayer in debug
	output.
	(unit_strength): Remove, never used.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-11-27  7:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-27  7:33 xconq ./ChangeLog kernel/ai.h kernel/ai.c kern shebs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).