Корабът Радецки - Eight ball pool v 1.0
The documnetation for our physics-themed project.
Stick Class Reference

#include <table.hpp>

Inheritance diagram for Stick:
Sprite DrawableManager::Drawable

Public Member Functions

 Stick (Vector2 position)
 
virtual ~Stick ()=default
 
void SetShown (bool value)
 
void SetForce (float value)
 
bool GetShown ()
 
Vector2 GetCurrentForce ()
 
void Create () override
 
void Update () override
 
void Draw () override
 Draws the sprites. More...
 
- Public Member Functions inherited from Sprite
 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...
 
- Public Member Functions inherited from DrawableManager::Drawable
 Drawable ()
 Sets the sprites' IDs. More...
 
virtual ~Drawable ()=default
 
int GetID ()
 

Additional Inherited Members

- Protected Attributes inherited from Sprite
Vector2 sprite_position
 
Texture2D sprite_texture
 
float sprite_scale_factor
 
float sprite_rotation
 

Constructor & Destructor Documentation

◆ Stick()

Stick::Stick ( Vector2  position)
inline

◆ ~Stick()

virtual Stick::~Stick ( )
virtualdefault

Member Function Documentation

◆ Create()

void Stick::Create ( )
overridevirtual

Reimplemented from DrawableManager::Drawable.

◆ Draw()

void Stick::Draw ( )
overridevirtual

Draws the sprites.

Reimplemented from Sprite.

◆ GetCurrentForce()

Vector2 Stick::GetCurrentForce ( )

◆ GetShown()

bool Stick::GetShown ( )

◆ SetForce()

void Stick::SetForce ( float  value)

◆ SetShown()

void Stick::SetShown ( bool  value)

◆ Update()

void Stick::Update ( )
overridevirtual

Reimplemented from DrawableManager::Drawable.