Skip to content
Snippets Groups Projects
constants.rst 659 B
Newer Older
  • Learn to ignore specific revisions
  • David Bergström's avatar
    David Bergström committed
    Constants
    =========
    
    See also UNIT_TYPEID, UPGRADE_ID and ABILITY_ID for more constants.
    
    .. _playerconstants:
    
    
    Player constants
    
    David Bergström's avatar
    David Bergström committed
    ----------------
    
    
    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.
    
    David Bergström's avatar
    David Bergström committed
    
    Difficulty
    ----------
    
    .. autoclass:: library.Difficulty
       :members:
       :undoc-members:
    
    Race
    ----
    
    
    " TODO: Order these explicitly
    
    
    David Bergström's avatar
    David Bergström committed
    .. autoclass:: library.Race
       :members:
       :undoc-members: