Complete.Org: Mailing Lists: Archives: freeciv-dev: July 1999:
Re: [Freeciv-Dev] Idea for 2.0
Home

Re: [Freeciv-Dev] Idea for 2.0

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Freeciv Dev <freeciv-dev@xxxxxxxxxxxx>
Subject: Re: [Freeciv-Dev] Idea for 2.0
From: Greg Wooledge <wooledge@xxxxxxxxxxx>
Date: Sun, 18 Jul 1999 12:16:21 -0400

Artur Biesiadowski (abies@xxxxxxxxx) wrote:

> Greg Wooledge wrote:

> > Yes, but that unique ID number is a secret that should be known only to
> > the server.  The client should not know it.

> Of course not.
> In that case server could get away with pointers only. ID is needed to
> communicate with client. In other case how would you pass changes in
> info about units ?

Yes, using IDs for all units does simplify things greatly.

There's no problem with sending the client the unit IDs of the player's
*own* units.  The problem comes when sending unit ID information for
enemy units.

Perhaps some time in the future, all enemy unit information could be
passed differently -- this may mean treating enemy units as a sort of tile
improvement that doesn't always stick around. ;-)  But for now, to keep
things simple, I'd probably recommend leave the unit ID approach intact.

-- 
Greg Wooledge                    | Distributed.NET http://www.distributed.net/
wooledge@xxxxxxxxxxx             | because a CPU is a terrible thing to waste.
http://www.kellnet.com/wooledge/ |

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