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: Kai Antweiler
Subject: Re: [glob2-devel] flags vs. areas: getting the best of both worlds
Date: Sat, 07 Apr 2007 15:28:27 +0200
User-agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.20 (linux)

> My idea is to use flags to control areas.  Any contiguous set of
> clearing cells would be automatically governed by a clearing flag
> whose circle contained or intersected with one of the cells.

Yes, makes sense.


>  (I'm not using the word "area" in some of my discussion because it
> is ambiguous in English whether the word "area" refers to each
> single cell, or a collection of contiguous cells.)

I remember having used "clearing area field", but "clearing cell"
sounds good.


>  If two or more flags would govern a set of cells, then which flag a
> cell is governed by would be determined by looking for the smaller
> of the distance to the flag minus the radius of the flag.

Ok, this works.  It's a bit unusual because both numbers are likely to
be negative, because radius is larger than distance if the flag governs
the cell.  But that is a matter of implementation.
radius - distance gives a positive score, which should be maximized.


> A minor addition:  It might be useful to allow moving a war flag to
> optionally move the set of cells it governs.  This could allow things
> like "lines of battle" or help to make flanking attacks.

Do you mean that the flag will have a noncircular region that


> Comments?  Good idea or just stupid?

Good idea.

-- 
Kai Antweiler




reply via email to

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