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 the Companion.Creates an input handler for the player.Creates an input handler for the shipCreates 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:
createForPlayerin classInputFactory- Returns:
- Player input handler
-
createForCompanion
Creates an input handler for the Companion.- Specified by:
createForCompanionin classInputFactory- Returns:
- Companion input handler
-
createForShip
Description copied from class:InputFactoryCreates an input handler for the ship- Specified by:
createForShipin classInputFactory- Returns:
- Ship input handler
-
createForTerminal
Creates an input handler for the terminal.- Specified by:
createForTerminalin classInputFactory- Returns:
- Terminal input handler
-