Package com.deco2800.game.input
Class TouchInputFactory
java.lang.Object
com.deco2800.game.input.InputFactory
com.deco2800.game.input.TouchInputFactory
-
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 cameraCreates an input handler for the playerCreates an input handler for the terminalCreates an input handler for the workerMethods inherited from class com.deco2800.game.input.InputFactory
createFromInputType
-
Constructor Details
-
TouchInputFactory
public TouchInputFactory()
-
-
Method Details
-
createForPlayer
Creates an input handler for the player- Specified by:
createForPlayer
in classInputFactory
- Returns:
- Player input handler
-
createForFriendlyUnit
- Specified by:
createForFriendlyUnit
in classInputFactory
-
createForWorker
Creates an input handler for the worker- Specified by:
createForWorker
in classInputFactory
- Returns:
- Worker 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
-