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

Player::Player ( void   ) 

Default constructor.

See also:
~Player()
Player::~Player ( void   ) 

Default destructor.

See also:
Player()

Member Function Documentation

PongMode Player::mode (  ) 

Returns the player's mode.

Returns:
The player's attraction/repulsion mode.
See also:
setMode()
vec3 Player::pos (  ) 

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()

Generated on Thu Jan 21 00:31:55 2010 for simpleVIS by  doxygen 1.6.1