Constants
=========

See also UNIT_TYPEID, UPGRADE_ID and ABILITY_ID for more constants.

.. _playerconstants:

Player constants
----------------

The following constants are used when referring to a player:

.. autoclass:: library.PLAYER_SELF
.. autoclass:: library.PLAYER_ENEMY
.. autoclass:: library.PLAYER_NEUTRAL
.. autoclass:: library.PLAYER_ALLY

These are internally represented as integers, but these constants should be 
used instead to avoid confusion.

Difficulty
----------

.. autoclass:: library.Difficulty
   :members:
   :undoc-members:

Race
----

" TODO: Order these explicitly

.. autoclass:: library.Race
   :members:
   :undoc-members: