glob2-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [glob2-devel] flags vs. areas: getting the best of both worlds


From: Joe Wells
Subject: Re: [glob2-devel] flags vs. areas: getting the best of both worlds
Date: Sat, 14 Apr 2007 16:30:41 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Kai Antweiler <address@hidden> writes:

>>> There are harder parts concerning the engine,
>>
>> It depends.  How is the circular region of current flags actually
>> used?
>
> I think flags are treated as buildings or at least similar.  So we
> would have to have the flag look at its fields to know how many globs
> it needs.

Currently, it looks at a (somewhat) circular region.  This would
simply change to looking at the clearing cells it governs.

> Then the flag has to offer jobs to the globs.  Then the
> globs have to be not only directed to the flag, but to the area that
> is governed by the flag.

How do the globs find their job right now?  I am assuming they are
given the destination gradient for the flag.  We just change that
destination gradient to raise the clearing cells the flag governs that
happen to currently have clearable resources on them, and we are done.

> This can be regions that arn't even
> accessable from the field the flag is on.

I think this won't matter.  As mentioned above, just raise in the
flag's destination gradient the right cells.

> And it shoud manage the
> globs in a way that the globs are used efficiently.
> Let's say you want to clear wood but preserve wheat.
> The globs should go to an area where they can cut a lot of wood.
> w=wheat, t=tree, F=flag
>
> wwwtt
> t wtt
> tFwtt
>   wtt
> wwwtt
>
>>  Are all of the cells inside the region raised in some gradient?
>
> No, the flag has to hire globs to make sure the right amount of globs
> is coming.

Understood.  But there must be a destination gradient for the flag in
order for the globules to find it, once they are hired, right?

-- 
Joe




reply via email to

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