Creation | |
| Player | Creates a new Player object |
|
Functions | |
| Score & lives | |
| SetScore | Sets the player's score |
| AddToScore | Adds to the player's score |
| GetScore | Returns the player's score |
| SetLives | Sets the player's lives |
| AddToLives | Adds to the player's lives |
| GetLives | Returns the player's lives |
|
| Input devices | |
| IsJoystickConnected | Checks if the given joystick number is currently attatched |
| SetDevice | Changes the current input device |
| SetLeft | Changes the current key (keyboard) or strength (joystick) to move left |
| SetRight | Changes the current key (keyboard) or strength (joystick) to move right |
| SetUp | Changes the current key (keyboard) or strength (joystick) to move up |
| SetDown | Changes the current key (keyboard) or strength (joystick) to move down |
| SetFire | Changes the current key (keyboard) or button (joystick) to fire |
| SetJump | Changes the current key (keyboard) or button (joystick) to jump |
| GetLeft | Returns the current key (keyboard) or strength (joystick) to move left |
| GetRight | Returns the current key (keyboard) or strength (joystick) to move right |
| GetUp | Returns the current key (keyboard) or strength (joystick) to move up |
| GetDown | Returns the current key (keyboard) or strength (joystick) to move down |
| GetFire | Returns the current key (keyboard) or button (joystick) to fire |
| GetJump | Returns the current key (keyboard) or button (joystick) to jump |
| IsLeft | Returns the level of left movement (from 0 to 65535) |
| IsRight | Returns the level of right movement (from 0 to 65535) |
| IsUp | Returns the level of upwards movement (from 0 to 65535) |
| IsDown | Returns the level of downwards movement (from 0 to 65535) |
| IsFire | Returns TRUE if the fire key/button is pressed |
| IsJump | Returns TRUE if the jump key/button is pressed |