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

Re: [Freeciv-Dev] Idea for 2.0

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Artur Biesiadowski <abies@xxxxxxxxx>
Cc: Freeciv Dev <freeciv-dev@xxxxxxxxxxxx>
Subject: Re: [Freeciv-Dev] Idea for 2.0
From: Jules Bean <jmlb2@xxxxxxxxxxxxxxxx>
Date: Sun, 18 Jul 1999 17:06:01 +0100

Artur Biesiadowski 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 ? To decrease hp of unit you would need to reference
> not simple id, but position on board + number of unit on that field - a
> lot of bookeeping. And how to do finding units supported by given city ?
> It would have to go through server (and now can be done in client).

Not at all.

The client has a separate unique ID, which it stores, and the server

So the server says 'You see a new unit, you may call it 1'.

Then 'The unit you are calling 1 attacks London'

'The unit you are calling 1 runs offscreen'

'You see a new unit, you may call it 2'

Unbeknownst to the client, this is actually the same unit.

The client has an internal set of arrays, saying 'unit 51 is called unit
1 by client 1, unit 6 by client 2...' and so on.


|  Jelibean aka  | jules@xxxxxxxxxxxxxxx         |  6 Evelyn Rd        |
|  Jules aka     |                               |  Richmond, Surrey   |
|  Julian Bean   | jmlb2@xxxxxxxxxxxxxxxx        |  TW9 2TF *UK*       |
|  War doesn't demonstrate who's right... just who's left.             |
|  When privacy is outlawed... only the outlaws have privacy.          |

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