Bridges-Java  3.4.3
Bridges(Java API)
Classes | Public Member Functions | Package Attributes | List of all members
bridges.games.InputStateMachine Class Reference

Classes

enum  CycleState
 
enum  FireState
 

Public Member Functions

 InputStateMachine (Supplier< Boolean > rawState)
 
void update ()
 
boolean justPressed ()
 
boolean stillPressed ()
 
boolean justNotPressed ()
 
boolean stillNotPressed ()
 
void setFireCooldown (int c)
 
boolean fire ()
 

Package Attributes

CycleState s
 
Supplier< Boolean > rawState
 
FireState f
 
int cooldown
 
int cooldownCounter
 

Constructor & Destructor Documentation

◆ InputStateMachine()

bridges.games.InputStateMachine.InputStateMachine ( Supplier< Boolean >  rawState)

Member Function Documentation

◆ fire()

boolean bridges.games.InputStateMachine.fire ( )

◆ justNotPressed()

boolean bridges.games.InputStateMachine.justNotPressed ( )

◆ justPressed()

boolean bridges.games.InputStateMachine.justPressed ( )

◆ setFireCooldown()

void bridges.games.InputStateMachine.setFireCooldown ( int  c)

◆ stillNotPressed()

boolean bridges.games.InputStateMachine.stillNotPressed ( )

◆ stillPressed()

boolean bridges.games.InputStateMachine.stillPressed ( )

◆ update()

void bridges.games.InputStateMachine.update ( )

Member Data Documentation

◆ cooldown

int bridges.games.InputStateMachine.cooldown
package

◆ cooldownCounter

int bridges.games.InputStateMachine.cooldownCounter
package

◆ f

FireState bridges.games.InputStateMachine.f
package

◆ rawState

Supplier<Boolean> bridges.games.InputStateMachine.rawState
package

◆ s

CycleState bridges.games.InputStateMachine.s
package

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