Package horizons :: Package world :: Module diplomacy
[hide private]
[frames] | no frames]

Module diplomacy

source code

Classes [hide private]
  Diplomacy
Diplomacy class handles diplomacy between players two players can be allies, neutral or enemies allies: set of (a, b) tuples of player instances meaning a and b are allies for making the relationship symmetrical a has a lower worldid than b enemies: set of (a, b) tuples of player instances meaning a and b are enemies if to players are not allies nore enemies, they are neutral
Functions [hide private]
 
make_tup(a, b)
Utility function that returns x,y tuple with x.worldid < y.worldid
source code