Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2002:
[Freeciv-Dev] end of turn activities
Home

[Freeciv-Dev] end of turn activities

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] end of turn activities
From: Thomas Strub <ue80@xxxxxxxxxxxxxxxxxxx>
Date: Sun, 18 Aug 2002 18:38:16 +0200

Hi,

in end_turn of server/srv_main.c there are three activities which are
done in one go.

( update_player_activities(pplayer); server/plrhand.c


ai_do_last_activities(pplayer);  (aimovement of last turn)
building / updating in cities
 great_library(pplayer);
  update_revolution(pplayer);
  player_restore_units(pplayer); /*note: restoring move point moved
                                   to update_unit_activities*/
  update_city_activities(pplayer);
  pplayer->research.changed_from=-1;

moving units checking aliveness
 update_unit_activities(pplayer);
  update_player_aliveness(pplayer);

I think that should be seperated in three separate functions.
First ai-moves of the last round.
Second building updating units.
Third movement of the new round.

Or are there any reasons to not change that?

Thomas
-- 
Thomas Strub  ***  eMail ue80@xxxxxxxxxxxxxxxxxxx
Nur weil das Aufzeichnen, Kopieren und Schnüffeln bei elektronischem 
Datenverkehr leichter als bei der klassischen Post ist, darf man es nicht
einfach tun.


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