Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2001:
[Freeciv-Dev] Re: [RFC] Map decorations
Home

[Freeciv-Dev] Re: [RFC] Map decorations

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: rf13@xxxxxxxxxxxxxxxxxxxxxx, freeciv development list <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: [RFC] Map decorations
From: Gregory Berkolaiko <gberkolaiko@xxxxxxxxxxx>
Date: Sun, 7 Oct 2001 15:19:47 +0100 (BST)

 --- Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx> wrote: > 
> This is a preparation for unit agents. It would be nice if for example
> the SMA (settler management agent something like the current auto
> settler function) can show which action a settler plans to carry out
> and to show certain information. See the attached picture for an
> example made with a drawing program (there is a settler in the south
> east corner, it was just "blinked out" at the screenshot).

good idea
what would red line correspond to?
what would white line correspond to?

> Another point is that the current way of drawing the goto line is very
> ugly. The goto code calls the GUI code (if the line is started or
> changes) and the GUI code calls the goto code (if the mapview is
> refreshed).
> 
> So something like the following is useful IMHO:
> 
> struct map_decoration
> {
>   int elements_used;
>   struct {
>     int x,y;
>     char *text;
>     enum color_std line_color, text_color;
>   } elements[MAX_MAP_DECORATIONS_ELEMENTS];
> };
> 
> /*
>  * Draws line between the centers of the tiles which are mentioned in
>  * the elements fields. Note that the tiles doesn't have to be
>  * adjacent. If a text is given this is drawn at the
>  * tile. Returns an id.
>  */
> int add_map_decoration(struct map_decoration *p);
> 
> void remove_map_decoration(int id);

very good idea

G.

____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie


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