Package com.csse3200.game.input
Class EngineerInputComponent
java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.input.InputComponent
com.csse3200.game.input.EngineerInputComponent
- All Implemented Interfaces:
com.badlogic.gdx.input.GestureDetector.GestureListener
,com.badlogic.gdx.InputProcessor
-
Field Summary
Fields inherited from class com.csse3200.game.input.InputComponent
priority
-
Constructor Summary
ConstructorDescriptionEngineerInputComponent
(com.badlogic.gdx.Game game, com.badlogic.gdx.graphics.Camera camera) -
Method Summary
Modifier and TypeMethodDescriptionboolean
keyDown
(int keycode) void
setMoveClicked
(boolean moveClicked) boolean
touchDown
(int screenX, int screenY, int pointer, int button) Methods inherited from class com.csse3200.game.input.InputComponent
create, dispose, fling, getPriority, keyTyped, keyUp, longPress, mouseMoved, pan, panStop, pinch, pinchStop, pinchStopHandled, scrolled, setPriority, tap, touchDown, touchDragged, touchUp, zoom
Methods inherited from class com.csse3200.game.components.Component
earlyUpdate, getEntity, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate, update
-
Constructor Details
-
EngineerInputComponent
public EngineerInputComponent(com.badlogic.gdx.Game game, com.badlogic.gdx.graphics.Camera camera)
-
-
Method Details
-
touchDown
public boolean touchDown(int screenX, int screenY, int pointer, int button) - Specified by:
touchDown
in interfacecom.badlogic.gdx.InputProcessor
- Overrides:
touchDown
in classInputComponent
- See Also:
-
InputProcessor.touchDown(int, int, int, int)
-
keyDown
public boolean keyDown(int keycode) - Specified by:
keyDown
in interfacecom.badlogic.gdx.InputProcessor
- Overrides:
keyDown
in classInputComponent
- See Also:
-
InputProcessor.keyDown(int)
-
setMoveClicked
public void setMoveClicked(boolean moveClicked)
-