Package com.csse3200.game.input
Class InputFactory
java.lang.Object
com.csse3200.game.input.InputFactory
- Direct Known Subclasses:
KeyboardInputFactory
InputFactory creates inputType-specific inputFactories which can handle various types of input.
Currently only keyboard input is implemented, but InputFactory can be expanded to
include more, e.g. touch gestures.
Methods to get new input handlers should be defined here.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InputFactorycreate()abstract InputComponentCreates an input handler for the player
-
Constructor Details
-
InputFactory
public InputFactory()
-
-
Method Details
-
create
- Returns:
- an KeyboardInputFactory
-
createForPlayer
Creates an input handler for the player- Returns:
- Player input handler
-