Add resource of specified type to player.
||string||Generic type of resource.|
||number||Amount of resource, which should be added.|
||string||The generic type of resource to add the gatherer for.|
Add resources to player.
Check if given player is our ally.
Check if given player is our enemy
Check if given player is our ally excluding ourself
Check if given player is our ally, and we are its ally, excluding ourself
Check if given player is our ally, and we are its ally
Check if given player is neutral
Do some map dependant initializations
Keep track of population effects of all entities that become owned or unowned by this player.
||string||The generic type of resource to remove the gatherer from.|
Don't serialize diplomacyColor or displayDiplomacyColor since they're modified by the GUI.
||string||Either "defeated" or "won".|
||string | undefined||A string to be shown in chat, for example markForTranslation("%(player)s has been defeated (failed objective)."). If it is undefined, the caller MUST send that GUI notification manually.|