Player Class Reference
Representation of the player of the Pong game.
More...
List of all members.
Public Member Functions
Detailed Description
This simple class stores the position and mode of the player, i.e. the cursor and draws it.
Constructor & Destructor Documentation
Member Function Documentation
PongMode Player::mode |
( |
|
) |
|
Returns the player's mode.
- Returns:
- The player's attraction/repulsion mode.
- See also:
- setMode()
Returns the player's position.
- Returns:
- The player's position.
- See also:
- setPos()
void Player::setMode |
( |
PongMode |
mode |
) |
|
Sets the player's mode.
- Parameters:
-
| mode | The player's new mode. |
- See also:
- mode()
void Player::setPos |
( |
float |
x, |
|
|
float |
y | |
|
) |
| | |
Sets the player's position.
- Parameters:
-
| x | The player's new x-coordinate. |
| y | The player's new y-coordinate. |
- See also:
- pos()