Follow-up Comment #1, bug #17490 (project freeciv):
As a player can only have one AI type only one type of data needs to be
saved, or?
My idea is to create an AI data element in the structs for the player, all
units and cities like
struct player {
...
void *ai;
...
}
Depending on the AI type it is defined differently. Furthermore, each AI type
uses its own save/load functions (which check for the correct AI type of the
player!). Additionally a function would be needed to switch betwen AI types.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?17490>
_______________________________________________
Nachricht geschickt von/durch Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev