mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-05-27 00:06:49 +00:00
merged with develop
This commit is contained in:
@@ -20,12 +20,15 @@ namespace BBM
|
||||
//! @brief index of the current button selected
|
||||
WAL::Entity *_currentButton;
|
||||
|
||||
//! @brief position of the mouse at the precedent scene (to know which controller event to watch)
|
||||
Vector2f _oldMousePosition;
|
||||
|
||||
//! @brief update current button reference
|
||||
//! @param selected lets know if te new selected button is 'pressed'
|
||||
void _updateCurrentButton(bool selected, Vector2f move);
|
||||
|
||||
//! @return true if mouse on entity
|
||||
bool _mouseOnButton(WAL::ViewEntity<OnClickComponent, OnHoverComponent, OnIdleComponent, PositionComponent, Drawable2DComponent> &entity) const;
|
||||
bool _mouseOnButton(const Vector2f &mousePos, WAL::ViewEntity<OnClickComponent, OnHoverComponent, OnIdleComponent, PositionComponent, Drawable2DComponent> &entity) const;
|
||||
public:
|
||||
//! @brief time (in millisecond) since last check
|
||||
std::chrono::time_point<std::chrono::steady_clock> now;
|
||||
|
||||
Reference in New Issue
Block a user