mirror of
https://github.com/zoriya/Bomberman.git
synced 2025-12-20 05:15:10 +00:00
menu controllable but still needs view
This commit is contained in:
@@ -12,8 +12,24 @@ namespace BBM
|
||||
class MenuControllableSystem : public WAL::System
|
||||
{
|
||||
private:
|
||||
//! @brief index of the current button selected
|
||||
unsigned _buttonIndex = 0;
|
||||
|
||||
//! @brief move vector
|
||||
Vector2f move;
|
||||
|
||||
//! @brief Select action
|
||||
bool select = false;
|
||||
|
||||
//! @brief Cancel action
|
||||
bool cancel = false;
|
||||
|
||||
//! @brief update button index
|
||||
//! @param length length of the button set
|
||||
void updateButtonIndex(int length);
|
||||
public:
|
||||
//! @inherit
|
||||
void onSelfUpdate(void) override;
|
||||
|
||||
//! @inherit
|
||||
void onFixedUpdate(WAL::Entity &entity) override;
|
||||
|
||||
Reference in New Issue
Block a user