Player (class)

From Moondust Wiki
Revision as of 10:06, 26 October 2014 by Kevsoft (talk | contribs)
Jump to navigation Jump to search

This class provides fields/functions for managing Players in the current level.

Player class
Type Function/Field Return values/Value type Description
Constructor myPlayer = Player() Player Construct a new Player-Object. This objects references to the first player. You might want to use the constants player and player2 (for the 2nd player) instead.
Constructor myPlayer = Player(int internalIndex) Player Construct a new Player-Object. This object reference to the player given in internalIndex. 1 = first player, 2 = second player