| [freeciv-ai] Re: aiair uses set_unit_activity() directly[Top] [All Lists][Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
 
 
Per Inge Mathisen wrote:
 
On Mon, 30 Aug 2004, Jason Dorje Short wrote:
 
 
Another idea is to have wrappers like ai_handle_* to do the work.
 
We already have this for movement. See ai_unit_*() in aitools.c. This is
generally the best solution, I think. Note that these functions often
duplicate the sanity checks done later in the handle function, and check
the result after the handle_*() call, doing hopefully intelligent
responses to whatever happens or does not happen.
 
Sounds good.
jason
 
 
 |  |