Package com.csse3200.game.input
Class KeyboardInputFactory
java.lang.Object
com.csse3200.game.input.InputFactory
com.csse3200.game.input.KeyboardInputFactory
KeyboardInputFactory creates input handlers that process keyboard and touch support.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.csse3200.game.input.InputFactory
InputFactory.InputType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates an input handler for combat.Creates an input handler for dialogue.Creates an input handler for the player.Creates an input handler for the terminal.Methods inherited from class com.csse3200.game.input.InputFactory
createFromInputType
-
Constructor Details
-
KeyboardInputFactory
public KeyboardInputFactory()
-
-
Method Details
-
createForPlayer
Creates an input handler for the player.- Specified by:
createForPlayer
in classInputFactory
- Returns:
- Player input handler
-
createForTerminal
Creates an input handler for the terminal.- Specified by:
createForTerminal
in classInputFactory
- Returns:
- Terminal input handler
-
createForCombat
Creates an input handler for combat.- Specified by:
createForCombat
in classInputFactory
- Returns:
- combat input handler
-
createForDialogue
Creates an input handler for dialogue.- Specified by:
createForDialogue
in classInputFactory
- Returns:
- dialogue input handler
-