Phoenix2D-Library
0.10
|
Ball
The Ball lorem Ipsum
More...
#include <Ball.h>
Public Member Functions | |
Ball () | |
Ball (int simulation_time) | |
Ball (std::string position, int simulation_time) | |
Ball (std::string position, int simulation_time, Position player_position, Vector2D player_velocity) | |
~Ball () | |
Position | getPosition () |
Vector2D | getVelocity () |
bool | isInSightRange () |
void | boundTo (Ball *ball) |
Ball * | getBound () |
Private Attributes | |
double | distance |
double | direction |
double | distChange |
double | dirChange |
double | x |
double | y |
double | vx |
double | vy |
int | simulation_time |
bool | in_sight_range |
Ball * | bound |
Phoenix::Ball::Ball | ( | ) |
Definition at line 29 of file Ball.cpp.
References bound, dirChange, direction, distance, distChange, in_sight_range, simulation_time, vx, vy, x, and y.
Phoenix::Ball::Ball | ( | int | simulation_time | ) |
Definition at line 43 of file Ball.cpp.
References bound, dirChange, direction, distance, distChange, in_sight_range, simulation_time, vx, vy, x, and y.
Phoenix::Ball::Ball | ( | std::string | position, |
int | simulation_time | ||
) |
Definition at line 57 of file Ball.cpp.
References bound, dirChange, direction, distance, distChange, in_sight_range, simulation_time, vx, vy, x, and y.
Phoenix::Ball::Ball | ( | std::string | position, |
int | simulation_time, | ||
Position | player_position, | ||
Vector2D | player_velocity | ||
) |
Definition at line 87 of file Ball.cpp.
References bound, dirChange, direction, distance, distChange, Phoenix::Position::getBodyDirection(), Phoenix::Position::getHeadDirection(), Phoenix::Position::getX(), Phoenix::Vector2D::getXComponent(), Phoenix::Position::getY(), Phoenix::Vector2D::getYComponent(), in_sight_range, Phoenix::Self::PI, simulation_time, vx, vy, x, and y.
void Phoenix::Ball::boundTo | ( | Ball * | ball | ) |
Definition at line 158 of file Ball.cpp.
References Phoenix::ball, and bound.
Position Phoenix::Ball::getPosition | ( | ) |
Vector2D Phoenix::Ball::getVelocity | ( | ) |
Definition at line 150 of file Ball.cpp.
References Phoenix::Vector2D::getVector2DWithXAndY(), vx, and vy.
bool Phoenix::Ball::isInSightRange | ( | ) |
Definition at line 154 of file Ball.cpp.
References in_sight_range.
|
private |
Definition at line 49 of file Ball.h.
Referenced by Ball(), boundTo(), and getBound().
|
private |
|
private |
Definition at line 48 of file Ball.h.
Referenced by Ball(), and isInSightRange().
|
private |
|
private |
Definition at line 45 of file Ball.h.
Referenced by Ball(), and getVelocity().
|
private |
Definition at line 46 of file Ball.h.
Referenced by Ball(), and getVelocity().
|
private |
Definition at line 43 of file Ball.h.
Referenced by Ball(), and getPosition().
|
private |
Definition at line 44 of file Ball.h.
Referenced by Ball(), and getPosition().