Package com.b3dgs.lionengine.helper
Class EntityInputController
- java.lang.Object
-
- com.b3dgs.lionengine.game.feature.FeatureAbstract
-
- com.b3dgs.lionengine.game.feature.FeatureModel
-
- com.b3dgs.lionengine.helper.EntityInputController
-
- All Implemented Interfaces:
Feature,FeatureProvider
@FeatureInterface public final class EntityInputController extends FeatureModel
Entity input control implementation.
-
-
Field Summary
-
Fields inherited from class com.b3dgs.lionengine.game.feature.FeatureModel
services, setup
-
-
Constructor Summary
Constructors Constructor Description EntityInputController(Services services, Setup setup)Create controller.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprepare(FeatureProvider provider)voidsetFireButton(java.lang.Integer index, java.lang.Integer code)Set the fire button code.voidsetHorizontalControlNegative(java.lang.Integer code)Set the horizontal negative control code.voidsetHorizontalControlPositive(java.lang.Integer code)Set the horizontal positive control code.voidsetVerticalControlNegative(java.lang.Integer code)Set the vertical negative control code.voidsetVerticalControlPositive(java.lang.Integer code)Set the vertical positive control code.-
Methods inherited from class com.b3dgs.lionengine.game.feature.FeatureAbstract
checkListener, getFeature, getFeatures, getFeaturesType, hasFeature
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.b3dgs.lionengine.game.FeatureProvider
ifIs
-
-
-
-
Constructor Detail
-
EntityInputController
public EntityInputController(Services services, Setup setup)
Create controller.- Parameters:
services- The services reference.setup- The setup reference.- Throws:
LionEngineException- If invalid class control.
-
-
Method Detail
-
setFireButton
public void setFireButton(java.lang.Integer index, java.lang.Integer code)Set the fire button code.- Parameters:
index- The button index (must not benull, must be positive).code- The fire button code (must not benull).- Throws:
LionEngineException- If invalid argument.
-
setHorizontalControlPositive
public void setHorizontalControlPositive(java.lang.Integer code)
Set the horizontal positive control code.- Parameters:
code- The horizontal positive control code (must not benull).- Throws:
LionEngineException- If invalid argument.
-
setHorizontalControlNegative
public void setHorizontalControlNegative(java.lang.Integer code)
Set the horizontal negative control code.- Parameters:
code- The horizontal negative control code (must not benull).- Throws:
LionEngineException- If invalid argument.
-
setVerticalControlPositive
public void setVerticalControlPositive(java.lang.Integer code)
Set the vertical positive control code.- Parameters:
code- The vertical positive control code (must not benull).- Throws:
LionEngineException- If invalid argument.
-
setVerticalControlNegative
public void setVerticalControlNegative(java.lang.Integer code)
Set the vertical negative control code.- Parameters:
code- The vertical negative control code (must not benull).- Throws:
LionEngineException- If invalid argument.
-
prepare
public void prepare(FeatureProvider provider)
- Specified by:
preparein interfaceFeature- Overrides:
preparein classFeatureAbstract
-
-