Class EntityInputController

    • 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 be null, must be positive).
        code - The fire button code (must not be null).
        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 be null).
        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 be null).
        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 be null).
        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 be null).
        Throws:
        LionEngineException - If invalid argument.