Phoenix2D-Library
0.10
|
Player
The Player lorem Ipsum
More...
#include <Player.h>
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 () |
Player * | getPretenderFront () |
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 |
Phoenix::Player::Player | ( | ) |
Definition at line 29 of file Player.cpp.
References body_b, bodyDirection, dirChange, direction, distance, distChange, goalie, head_b, headDirection, is_bounded, is_in_sight_range, is_localized, kicking, player_id, pointDir, pointing, simulation_time, tackling, team, theta, uniform_number, vx, vy, x, and y.
Phoenix::Player::Player | ( | std::string | name, |
std::string | position, | ||
int | simulation_time | ||
) |
Definition at line 57 of file Player.cpp.
References Phoenix::Controller::AGENT_TYPE, body_b, bodyDirection, dirChange, direction, distance, distChange, Phoenix::Vector2D::getVector2DWithXAndY(), goalie, head_b, headDirection, is_bounded, is_in_sight_range, is_localized, kicking, player_id, pointDir, pointing, simulation_time, tackling, team, Phoenix::Self::TEAM_NAME, theta, uniform_number, velocity, vx, vy, x, and y.
Phoenix::Player::Player | ( | std::string | name, |
std::string | position, | ||
int | simulation_time, | ||
Position | player_position, | ||
Vector2D | player_velocity | ||
) |
Definition at line 138 of file Player.cpp.
References body_b, bodyDirection, dirChange, direction, distance, distChange, Phoenix::Position::getBodyDirection(), Phoenix::Vector2D::getEmptyVector(), Phoenix::Position::getHeadDirection(), Phoenix::Vector2D::getVector2DWithXAndY(), Phoenix::Position::getX(), Phoenix::Vector2D::getXComponent(), Phoenix::Position::getY(), Phoenix::Vector2D::getYComponent(), goalie, head_b, headDirection, is_bounded, is_in_sight_range, is_localized, kicking, Phoenix::Self::PI, player_id, pointDir, pointing, simulation_time, tackling, team, Phoenix::Self::TEAM_NAME, theta, uniform_number, velocity, vx, vy, x, and y.
Phoenix::Player::~Player | ( | ) |
Definition at line 307 of file Player.cpp.
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.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 60 of file Player.h.
Referenced by isGoalie(), and Player().
|
private |
|
private |
|
private |
|
private |
Definition at line 63 of file Player.h.
Referenced by isInSightRange(), Player(), and toggleSightRange().
|
private |
Definition at line 64 of file Player.h.
Referenced by localized(), and Player().
|
private |
Definition at line 55 of file Player.h.
Referenced by isKicking(), and Player().
|
private |
Definition at line 62 of file Player.h.
Referenced by getPlayerId(), Player(), and setPlayerId().
|
private |
Definition at line 46 of file Player.h.
Referenced by getPointingDirection(), and Player().
|
private |
Definition at line 54 of file Player.h.
Referenced by isPointing(), and Player().
|
private |
Definition at line 67 of file Player.h.
Referenced by getPosition().
|
private |
Definition at line 66 of file Player.h.
Referenced by getPretenderFront(), getPretendersCount(), and pretendToBound().
|
private |
|
private |
Definition at line 56 of file Player.h.
Referenced by isTackling(), and Player().
|
private |
|
private |
|
private |
Definition at line 58 of file Player.h.
Referenced by getUniformNumber(), and Player().
|
private |
Definition at line 68 of file Player.h.
Referenced by getVelocity(), and Player().