Bridges-C++  3.4.2
Bridges(C++ API)
Public Member Functions | List of all members
bridges::game::InputStateMachine Class Reference

#include <InputStateMachine.h>

Public Member Functions

 InputStateMachine (std::function< bool()> rawStateFunc)
 
void update ()
 
bool justPressed () const
 
bool stillPressed () const
 
bool justNotPressed () const
 
bool stillNotPressed () const
 
void setFireCooldown (int c)
 
bool fire () const
 

Constructor & Destructor Documentation

◆ InputStateMachine()

bridges::game::InputStateMachine::InputStateMachine ( std::function< bool()>  rawStateFunc)
inline

Member Function Documentation

◆ fire()

bool bridges::game::InputStateMachine::fire ( ) const
inline

◆ justNotPressed()

bool bridges::game::InputStateMachine::justNotPressed ( ) const
inline

◆ justPressed()

bool bridges::game::InputStateMachine::justPressed ( ) const
inline

◆ setFireCooldown()

void bridges::game::InputStateMachine::setFireCooldown ( int  c)
inline

◆ stillNotPressed()

bool bridges::game::InputStateMachine::stillNotPressed ( ) const
inline

◆ stillPressed()

bool bridges::game::InputStateMachine::stillPressed ( ) const
inline

◆ update()

void bridges::game::InputStateMachine::update ( )
inline

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