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:


  Nachricht geschickt von/durch Gna!

Freeciv-dev mailing list

Reply via email to