#include <table.hpp>
Public Member Functions | |
Ball (int number, Vector2 initial_position) | |
virtual | ~Ball ()=default |
Vector2 | GetPosition () |
Vector2 | GetVelocity () |
void | SetPosition (Vector2 pos) |
void | AddForce (Vector2 force) |
void | Update () override |
void | Draw () override |
Draws the sprites. More... | |
![]() | |
Sprite (const char *texture_file_name, Vector2 initial_position, float scale=1.0f, float rotation=0.0f) | |
virtual | ~Sprite () |
void | SetScale (float scale) |
Sets the scale of the sprites. More... | |
void | SetPosition (Vector2 position) |
Sets the position of the sprites. More... | |
void | SetRotation (float rotation) |
Sets the rotation of the sprites. More... | |
Vector2 | GetPosition () |
Gets the position of the sprites. More... | |
float | GetWidth () |
Gets the width of the sprites. More... | |
float | GetHeight () |
Gets the height of the sprites. More... | |
float | GetRotation () |
Gets the exact rotation of the sprites. More... | |
![]() | |
Drawable () | |
Sets the sprites' IDs. More... | |
virtual | ~Drawable ()=default |
virtual void | Create () |
int | GetID () |
Additional Inherited Members | |
![]() | |
Vector2 | sprite_position |
Texture2D | sprite_texture |
float | sprite_scale_factor |
float | sprite_rotation |
|
inline |
|
virtualdefault |
void Ball::AddForce | ( | Vector2 | force | ) |
|
overridevirtual |
Draws the sprites.
Reimplemented from Sprite.
Vector2 Ball::GetPosition | ( | ) |
Vector2 Ball::GetVelocity | ( | ) |
void Ball::SetPosition | ( | Vector2 | pos | ) |
|
overridevirtual |
Reimplemented from DrawableManager::Drawable.