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

Public Member Functions

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

Protected Attributes

TextDrawable m_text
 
bool m_isSelected
 
std::shared_ptr< sf::Shader > m_shader
 
ListMenum_submenu
 
ListMenum_parent
 
void(* m_optFunction )(void)
 

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