Summary: use pointers for players
                 Project: Freeciv
            Submitted by: syntron
            Submitted on: Dienstag 06.07.2010 um 22:04
                Category: general
                Priority: 5 - Normal
                  Status: In Progress
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 2.3.0



This is a basic working version of freeciv where the static array
game.players is replaced by a speclist player_list. It needs some (a lot)
cleanup especially wrt the naming of functions and variables (*_slot_*;
pslot) and **testing**.

After this is working, the diplstats can be replaced by a speclist
diplstats_list. If a player is added an element has to be added to this list
for each player. If something similar is also done for all other places there
MAX_NUM_PLAYERS is used (bv_player), it would be possible to decrease the
memory requirement if a small number of players is used while allowing high
player numbers.

I'm a little out of time. I like to work on the freeciv code, but other
things have to be done (real life; I'm working to much before the computer).
So, if somebode wants to take this patch, feel free to do it!


File Attachments:

Date: Dienstag 06.07.2010 um 22:04  Name:
20100706-08-trunk-use-pointers-for-players.patch  Size: 37kB   By: syntron



Reply to this item at:


  Nachricht geschickt von/durch Gna!

Freeciv-dev mailing list

Reply via email to