sonus::Player Class Reference

#include <Player.h>

List of all members.

Public Member Functions

 Player ()
void setOrientation (double x, double y)
void setOrientation (double angle)
void getOrientationVector (Vector2D *vector)
double getOrientationAngle ()

Public Attributes

Vector2Dposition
float radius
Vector2DlinearVelocity
double angularVelocity
bool collision
Vector2D collisionDirection


Detailed Description

sonus::Player

The player class represents a player in a single game. The player is defined through position, radius and velocities. Furthermore he has a collision flag to determine if the player is colliding at the moment.

filename: Player.h

Date:
2008/08/20 17:29
Author:
Alexander Lawrence
Version:
1.0

Constructor & Destructor Documentation

sonus::Player::Player (  ) 

Constructor


Member Function Documentation

void sonus::Player::setOrientation ( double  x,
double  y 
)

Sets the orientation of the player by given vector

Parameters:
x x part of the vector
y y part of the vector

void sonus::Player::setOrientation ( double  angle  ) 

Sets the orientation of the player by given angle (rad)

Parameters:
angle orientation angle

void sonus::Player::getOrientationVector ( Vector2D vector  ) 

Returns the orientation of the player as vector

Parameters:
vector the output vector

double sonus::Player::getOrientationAngle (  ) 

Returns the orientation of the player as angle

Returns:
orientation of player


The documentation for this class was generated from the following file:
Generated on Tue Aug 26 12:26:54 2008 for sonus by  doxygen 1.5.4