Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2003:
[Freeciv-Dev] Re: (PR#2053) Cient can see all units in a stack
Home

[Freeciv-Dev] Re: (PR#2053) Cient can see all units in a stack

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Gregory Berkolaiko <Gregory.Berkolaiko@xxxxxxxxxxxx>
Cc: freeciv-dev <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: (PR#2053) Cient can see all units in a stack
From: Raimar Falke <rf13@xxxxxxxxxxxxxxxxx>
Date: Thu, 1 May 2003 17:11:16 +0200

On Mon, Apr 28, 2003 at 01:03:27PM +0100, Gregory Berkolaiko wrote:
> Sending only "top" leads to all sorts of problems.  The root of all evil 
> is that the units move into a tile (to form a stack) one by one and each 
> of these movements is sent to the client.

For real stacks we need an abstraction. Stacks must form a new atomic
object. A stack moves as a whole or not. All units of a stack attack
and defend. A stack needs a leader unit which is shown. I would here
say that the most expensive unit should be shown. But this is only a
detail. You would see all leaders of all stacks of a tile. And maybe
also the unit count of each stack.

Stacks are the "real" solution. However it may make the game too
complex. Especially since I assume that groups of units are not much
used in today games. But it is possible that this is caused by the
lack of real stacks.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "Premature optimization is the root of all evil."
    -- D. E. Knuth in "Structured Programming with go to Statements"



[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Re: (PR#2053) Cient can see all units in a stack, Raimar Falke <=