Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2003:
[Freeciv-Dev] Re: Single-player Freeciv notices
Home

[Freeciv-Dev] Re: Single-player Freeciv notices

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Stepan Roh <stepan@xxxxxxxx>
Cc: "Ross W. Wetmore" <rwetmore@xxxxxxxxxxxx>, Raimar Falke <rf13@xxxxxxxxxxxxxxxxx>, Freeciv Developers List <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: Single-player Freeciv notices
From: "Ross W. Wetmore" <rwetmore@xxxxxxxxxxxx>
Date: Tue, 14 Jan 2003 19:42:48 -0500

At 12:35 PM 03/01/14 +0100, Stepan Roh wrote:
>> >> - after dimplomat/spy investigates the city, it should be possible to
>> >> reopen that city window in the same turn without spy entering the city
>> >> again
>> >
>> >This would require that we save the state that the spy saw. If we
>> >however save this we can also add a "show last spy report for city"
>> >button. This would also work for reports collected 10 turns ago and
>> >across savegames and so on. Looks like a nice task for attributes.
>>
>> Nonsense, it just means setting a per player bit that gets reset at the
>> end-of-turn and is checked before opening the city display.
>
>But what about savegames?
>
>Have a nice day.
>
>Stepan Roh

If I am correct the initial request was to be able to reopen a city window
that a spy revealed during that turn. That just takes a bit per player
per city. The spy action sets it and launches the city display, but the 
player can then launch the city display as long as the bit is still set.

If you want to extend this to a savegame/loadgame and continue the turn
(which is a useful cheat technique), and still have the bit set then it
just needs to be written out as part of the city save data.

Saving an entire spy report, or copy of the city information to an
attribute block so you keep this for 10 turns is probably overkill
for the initial request and certainly not a requirement. It is also a 
lot more complicated as many pieces of attribute information need to be 
saved and reloaded into something that the city display can use, or you 
would need to write a new attributes display. It probably wouldn't 
happen, and if it did it would be a duplication and waste of effort.

Adding a bitstring to the current city, whether saved or not is relatively
painless in comparison, eminently doable and does the basic job just fine 
:-).

Or did I misunderstand the initial request?

Cheers,
RossW
=====





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