Package com.deco2800.game.input
Class KeyboardInputFactory
java.lang.Object
com.deco2800.game.input.InputFactory
com.deco2800.game.input.KeyboardInputFactory
KeyboardInputFactory creates input handlers that process keyboard and touch
support.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.deco2800.game.input.InputFactory
InputFactory.InputType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates an input handler for the camera.Creates an input handler for the player.Creates an input handler for the prolgoue StorylineCreates an input handler for the terminal.Methods inherited from class com.deco2800.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
-
createForCamera
Creates an input handler for the camera.- Specified by:
createForCamera
in classInputFactory
- Returns:
- Camera input handler
-
createForStoryLine
Creates an input handler for the prolgoue Storyline- Specified by:
createForStoryLine
in classInputFactory
- Returns:
- Storyline input handler
-