Platform Data Engine 0.0.1
A data-driven game engine for platformers
PlatformDataEngine::StatsBar Class Reference
Inheritance diagram for PlatformDataEngine::StatsBar:

Public Member Functions

void init ()
 
void update (const float &dt, const float &elapsedTime, float hp)
 
void draw (sf::RenderTarget &target, sf::RenderStates states) const
 
void loadDefinition (nlohmann::json object)
 
void setPosition (sf::Vector2f pos)
 Sets the position of the stats bar More...
 
void networkSerialize (PDEPacket &output)
 
void networkDeserialize (PDEPacket &input)
 

Member Function Documentation

◆ setPosition()

void StatsBar::setPosition ( sf::Vector2f  pos)

Sets the position of the stats bar

Parameters
posthe new position

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