14 #ifndef GK_MOVEMENTCOMPONENT_HPP_ 15 #define GK_MOVEMENTCOMPONENT_HPP_ 27 template<
typename... Args>
28 bool push(Args &&...args) {
29 if(
size() > 0 &&
top() && !
top()->isFinished()) {
50 movements.push(_movement);
57 bool isMoving =
false;
58 bool isDirectionLocked =
false;
67 #endif // GK_MOVEMENTCOMPONENT_HPP_ std::stack< std::unique_ptr< Movement > > m_movements
MovementComponent(Movement *_movement)
std::unique_ptr< Movement > & top()
Vector2< bool > isBlocked
bool push(Args &&...args)