mirror of
https://github.com/zoriya/Bomberman.git
synced 2025-12-20 05:15:10 +00:00
menu navigation, adding images
This commit is contained in:
@@ -4,16 +4,21 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Component/Controllable/ControllableComponent.hpp"
|
||||
#include "Models/Vector2.hpp"
|
||||
#include "System/System.hpp"
|
||||
|
||||
namespace BBM
|
||||
{
|
||||
//! @brief A system to handle Controllable entities in a menu.
|
||||
class MenuControllableSystem : public WAL::System
|
||||
class MenuControllableSystem : public WAL::System<ControllableComponent>
|
||||
{
|
||||
private:
|
||||
//! @brief reference to wal
|
||||
WAL::Wal &wal;
|
||||
|
||||
//! @brief index of the current button selected
|
||||
unsigned _buttonIndex = 0;
|
||||
int _buttonIndex = 0;
|
||||
|
||||
//! @brief move vector
|
||||
Vector2f move;
|
||||
@@ -32,10 +37,10 @@ namespace BBM
|
||||
void onSelfUpdate(void) override;
|
||||
|
||||
//! @inherit
|
||||
void onFixedUpdate(WAL::Entity &entity) override;
|
||||
void onFixedUpdate(WAL::ViewEntity<ControllableComponent> &entities) override;
|
||||
|
||||
//! @brief A default constructor
|
||||
MenuControllableSystem();
|
||||
MenuControllableSystem(WAL::Wal &wal);
|
||||
//! @brief A MenuControllable system is not copy constructable
|
||||
MenuControllableSystem(const MenuControllableSystem &) = delete;
|
||||
//! @brief A default destructor
|
||||
|
||||
Reference in New Issue
Block a user