Complete.Org: Mailing Lists: Archives: freeciv-ai: November 2002:
[freeciv-ai] Re: patch/rfc: wrap activity

[freeciv-ai] Re: patch/rfc: wrap activity

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "Per I. Mathisen" <per@xxxxxxxxxxx>
Cc: freeciv-ai@xxxxxxxxxxx
Subject: [freeciv-ai] Re: patch/rfc: wrap activity
From: Gregory Berkolaiko <Gregory.Berkolaiko@xxxxxxxxxxxx>
Date: Wed, 27 Nov 2002 18:51:23 +0000 (GMT)

On Wed, 27 Nov 2002, Per I. Mathisen wrote:

> > On the other hand, although I am against moving AI to client, there should
> > be good separation between AI and the game engine.This wrapper provides
> > another layer of this separation.But maybe handle_unit_activity_request
> > is enough of a separation?
> Probably. I'll make a new patch to move the check into
> handle_unit_activity_request and make the rest of the code use it (instead
> of set_unit_activity).

this idea combines worst of all cases.  Make AI do the cheking in the 
code.  Or make a mini-function, ai_fortify which does only that.


[Prev in Thread] Current Thread [Next in Thread]