Package com.mygdx.game.Components
Class PlayerController
java.lang.Object
com.mygdx.game.Components.Component
com.mygdx.game.Components.PlayerController
public class PlayerController extends Component
Responsible for the keyboard/mouse control of the player
-
Field Summary
Fields inherited from class com.mygdx.game.Components.Component
parent, reqsMet, requirements, type -
Constructor Summary
Constructors Constructor Description PlayerController()PlayerController(Player player, float speed) -
Method Summary
Modifier and Type Method Description voidupdate()Reads keyboard and mouse inputs, moving and shooting as required.Methods inherited from class com.mygdx.game.Components.Component
awake, cleanUp, getParent, getType, render, setParent, setRequirements, startMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait