Phoenix2D-Library  0.10
Public Member Functions | Private Attributes | List of all members
Phoenix::Player Class Reference

Player
The Player lorem Ipsum More...

#include <Player.h>

Collaboration diagram for Phoenix::Player:
Collaboration graph
[legend]

Public Member Functions

 Player ()
 
 Player (std::string name, std::string position, int simulation_time)
 
 Player (std::string name, std::string position, int simulation_time, Position player_position, Vector2D player_velocity)
 
 ~Player ()
 
Position getPosition ()
 
std::string getTeam ()
 
int getUniformNumber ()
 
Vector2D getVelocity ()
 
bool isGoalie ()
 
bool isPointing ()
 
double getPointingDirection ()
 
bool isKicking ()
 
bool isTackling ()
 
void boundTo (Player *player)
 
void setPlayerId (int player_id)
 
int getPlayerId ()
 
void toggleSightRange ()
 
bool isInSightRange ()
 
void pretendToBound (Player *player)
 
int getPretendersCount ()
 
PlayergetPretenderFront ()
 
bool localized ()
 
bool bounded ()
 
std::string print ()
 

Private Attributes

double distance
 
double direction
 
double distChange
 
double dirChange
 
double bodyDirection
 
double headDirection
 
double pointDir
 
double x
 
double y
 
double vx
 
double vy
 
double theta
 
bool body_b
 
bool head_b
 
bool pointing
 
bool kicking
 
bool tackling
 
std::string team
 
int uniform_number
 
int simulation_time
 
bool goalie
 
int player_id
 
bool is_in_sight_range
 
bool is_localized
 
bool is_bounded
 
std::vector< Player * > pretenders
 
Position position
 
Vector2D velocity
 

Detailed Description

Player
The Player lorem Ipsum

Definition at line 39 of file Player.h.

Constructor & Destructor Documentation

Phoenix::Player::Player ( )
Phoenix::Player::Player ( std::string  name,
std::string  position,
int  simulation_time 
)
Phoenix::Player::Player ( std::string  name,
std::string  position,
int  simulation_time,
Position  player_position,
Vector2D  player_velocity 
)
Phoenix::Player::~Player ( )

Definition at line 307 of file Player.cpp.

Member Function Documentation

bool Phoenix::Player::bounded ( )

Definition at line 391 of file Player.cpp.

References is_bounded.

void Phoenix::Player::boundTo ( Player player)

Definition at line 353 of file Player.cpp.

References is_bounded.

Referenced by Phoenix::World::updateWorld().

int Phoenix::Player::getPlayerId ( )

Definition at line 363 of file Player.cpp.

References player_id.

double Phoenix::Player::getPointingDirection ( )

Definition at line 341 of file Player.cpp.

References pointDir.

Position Phoenix::Player::getPosition ( )

Definition at line 311 of file Player.cpp.

References position.

Referenced by Phoenix::compareDistances(), and Phoenix::World::updateWorld().

Player * Phoenix::Player::getPretenderFront ( )

Definition at line 383 of file Player.cpp.

References pretenders.

Referenced by Phoenix::World::updateWorld().

int Phoenix::Player::getPretendersCount ( )

Definition at line 379 of file Player.cpp.

References pretenders.

std::string Phoenix::Player::getTeam ( )

Definition at line 320 of file Player.cpp.

References team.

int Phoenix::Player::getUniformNumber ( )

Definition at line 324 of file Player.cpp.

References uniform_number.

Vector2D Phoenix::Player::getVelocity ( )

Definition at line 328 of file Player.cpp.

References velocity.

bool Phoenix::Player::isGoalie ( )

Definition at line 333 of file Player.cpp.

References goalie.

bool Phoenix::Player::isInSightRange ( )

Definition at line 371 of file Player.cpp.

References is_in_sight_range.

bool Phoenix::Player::isKicking ( )

Definition at line 345 of file Player.cpp.

References kicking.

bool Phoenix::Player::isPointing ( )

Definition at line 337 of file Player.cpp.

References pointing.

bool Phoenix::Player::isTackling ( )

Definition at line 349 of file Player.cpp.

References tackling.

bool Phoenix::Player::localized ( )

Definition at line 387 of file Player.cpp.

References is_localized.

void Phoenix::Player::pretendToBound ( Player player)

Definition at line 375 of file Player.cpp.

References pretenders.

Referenced by Phoenix::World::updateWorld().

std::string Phoenix::Player::print ( )

Definition at line 395 of file Player.cpp.

void Phoenix::Player::setPlayerId ( int  player_id)

Definition at line 359 of file Player.cpp.

References player_id.

void Phoenix::Player::toggleSightRange ( )

Definition at line 367 of file Player.cpp.

References is_in_sight_range.

Member Data Documentation

bool Phoenix::Player::body_b
private

Definition at line 52 of file Player.h.

Referenced by Player().

double Phoenix::Player::bodyDirection
private

Definition at line 44 of file Player.h.

Referenced by Player().

double Phoenix::Player::dirChange
private

Definition at line 43 of file Player.h.

Referenced by Player().

double Phoenix::Player::direction
private

Definition at line 41 of file Player.h.

Referenced by Player().

double Phoenix::Player::distance
private

Definition at line 40 of file Player.h.

Referenced by Player().

double Phoenix::Player::distChange
private

Definition at line 42 of file Player.h.

Referenced by Player().

bool Phoenix::Player::goalie
private

Definition at line 60 of file Player.h.

Referenced by isGoalie(), and Player().

bool Phoenix::Player::head_b
private

Definition at line 53 of file Player.h.

Referenced by Player().

double Phoenix::Player::headDirection
private

Definition at line 45 of file Player.h.

Referenced by Player().

bool Phoenix::Player::is_bounded
private

Definition at line 65 of file Player.h.

Referenced by bounded(), boundTo(), and Player().

bool Phoenix::Player::is_in_sight_range
private

Definition at line 63 of file Player.h.

Referenced by isInSightRange(), Player(), and toggleSightRange().

bool Phoenix::Player::is_localized
private

Definition at line 64 of file Player.h.

Referenced by localized(), and Player().

bool Phoenix::Player::kicking
private

Definition at line 55 of file Player.h.

Referenced by isKicking(), and Player().

int Phoenix::Player::player_id
private

Definition at line 62 of file Player.h.

Referenced by getPlayerId(), Player(), and setPlayerId().

double Phoenix::Player::pointDir
private

Definition at line 46 of file Player.h.

Referenced by getPointingDirection(), and Player().

bool Phoenix::Player::pointing
private

Definition at line 54 of file Player.h.

Referenced by isPointing(), and Player().

Position Phoenix::Player::position
private

Definition at line 67 of file Player.h.

Referenced by getPosition().

std::vector<Player*> Phoenix::Player::pretenders
private

Definition at line 66 of file Player.h.

Referenced by getPretenderFront(), getPretendersCount(), and pretendToBound().

int Phoenix::Player::simulation_time
private

Definition at line 59 of file Player.h.

Referenced by Player().

bool Phoenix::Player::tackling
private

Definition at line 56 of file Player.h.

Referenced by isTackling(), and Player().

std::string Phoenix::Player::team
private

Definition at line 57 of file Player.h.

Referenced by getTeam(), and Player().

double Phoenix::Player::theta
private

Definition at line 51 of file Player.h.

Referenced by Player().

int Phoenix::Player::uniform_number
private

Definition at line 58 of file Player.h.

Referenced by getUniformNumber(), and Player().

Vector2D Phoenix::Player::velocity
private

Definition at line 68 of file Player.h.

Referenced by getVelocity(), and Player().

double Phoenix::Player::vx
private

Definition at line 49 of file Player.h.

Referenced by Player().

double Phoenix::Player::vy
private

Definition at line 50 of file Player.h.

Referenced by Player().

double Phoenix::Player::x
private

Definition at line 47 of file Player.h.

Referenced by Player().

double Phoenix::Player::y
private

Definition at line 48 of file Player.h.

Referenced by Player().


The documentation for this class was generated from the following files: