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

Ball
The Ball lorem Ipsum More...

#include <Ball.h>

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

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

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
 
Ballbound
 

Detailed Description

Ball
The Ball lorem Ipsum

Definition at line 38 of file Ball.h.

Constructor & Destructor Documentation

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 
)
Phoenix::Ball::~Ball ( )

Definition at line 142 of file Ball.cpp.

Member Function Documentation

void Phoenix::Ball::boundTo ( Ball ball)

Definition at line 158 of file Ball.cpp.

References Phoenix::ball, and bound.

Ball * Phoenix::Ball::getBound ( )

Definition at line 162 of file Ball.cpp.

References bound.

Position Phoenix::Ball::getPosition ( )

Definition at line 146 of file Ball.cpp.

References x, and y.

Vector2D Phoenix::Ball::getVelocity ( )

Definition at line 150 of file Ball.cpp.

References Phoenix::Vector2D::getVector2DWithXAndY(), vx, and vy.

Here is the call graph for this function:

bool Phoenix::Ball::isInSightRange ( )

Definition at line 154 of file Ball.cpp.

References in_sight_range.

Member Data Documentation

Ball* Phoenix::Ball::bound
private

Definition at line 49 of file Ball.h.

Referenced by Ball(), boundTo(), and getBound().

double Phoenix::Ball::dirChange
private

Definition at line 42 of file Ball.h.

Referenced by Ball().

double Phoenix::Ball::direction
private

Definition at line 40 of file Ball.h.

Referenced by Ball().

double Phoenix::Ball::distance
private

Definition at line 39 of file Ball.h.

Referenced by Ball().

double Phoenix::Ball::distChange
private

Definition at line 41 of file Ball.h.

Referenced by Ball().

bool Phoenix::Ball::in_sight_range
private

Definition at line 48 of file Ball.h.

Referenced by Ball(), and isInSightRange().

int Phoenix::Ball::simulation_time
private

Definition at line 47 of file Ball.h.

Referenced by Ball().

double Phoenix::Ball::vx
private

Definition at line 45 of file Ball.h.

Referenced by Ball(), and getVelocity().

double Phoenix::Ball::vy
private

Definition at line 46 of file Ball.h.

Referenced by Ball(), and getVelocity().

double Phoenix::Ball::x
private

Definition at line 43 of file Ball.h.

Referenced by Ball(), and getPosition().

double Phoenix::Ball::y
private

Definition at line 44 of file Ball.h.

Referenced by Ball(), and getPosition().


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