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

Public Member Functions

 TextBox (const std::string &label, ListMenu *parent)
 
void setStringRef (std::string *stringPtr)
 
void init ()
 
void update (const float &dt, const float &elapsedTime)
 
void draw (sf::RenderTarget &target, sf::RenderStates states) const
 
void interact ()
 
- Public Member Functions inherited from PlatformDataEngine::MenuOption
 MenuOption (ListMenu *parent)
 
 MenuOption (const std::string &text, ListMenu *parent)
 
virtual void init ()
 
virtual void update (const float &dt, const float &elapsedTime)
 
void setSubmenu (ListMenu *submenu)
 
ListMenugetSubmenu ()
 
void setSelected (bool selected)
 
virtual void draw (sf::RenderTarget &target, sf::RenderStates states) const
 
void setFunctionPtr (void(*optFunction)(void))
 
virtual void interact ()
 

Additional Inherited Members

- Protected Attributes inherited from PlatformDataEngine::MenuOption
TextDrawable m_text
 
bool m_isSelected
 
std::shared_ptr< sf::Shader > m_shader
 
ListMenum_submenu
 
ListMenum_parent
 
void(* m_optFunction )(void)
 

Member Function Documentation

◆ draw()

void TextBox::draw ( sf::RenderTarget &  target,
sf::RenderStates  states 
) const
virtual

Reimplemented from PlatformDataEngine::MenuOption.

◆ init()

void TextBox::init ( )
virtual

Reimplemented from PlatformDataEngine::MenuOption.

◆ interact()

void TextBox::interact ( )
virtual

Reimplemented from PlatformDataEngine::MenuOption.

◆ update()

void TextBox::update ( const float &  dt,
const float &  elapsedTime 
)
virtual

Reimplemented from PlatformDataEngine::MenuOption.


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