From mboxrd@z Thu Jan 1 00:00:00 1970 From: shebs@sourceware.cygnus.com To: xconq-cvs@sourceware.cygnus.com Subject: xconq ./ChangeLog kernel/ai.h kernel/ai.c kern ... Date: Mon, 27 Nov 2000 07:33:00 -0000 Message-id: <20001127153323.5126.qmail@sourceware.cygnus.com> X-SW-Source: 2000/msg00625.html List-Id: 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.