Class SimpleHorizontalMovement

  • All Implemented Interfaces:
    Movement

    public class SimpleHorizontalMovement
    extends java.lang.Object
    implements Movement
    • Constructor Detail

      • SimpleHorizontalMovement

        public SimpleHorizontalMovement​(int min,
                                        int max,
                                        int speed)
    • Method Detail

      • move

        public void move​(Movable movable)
        Description copied from interface: Movement
        Move a movable.
        Specified by:
        move in interface Movement
        Parameters:
        movable - The movable to move.
      • moveLeft

        public void moveLeft​(Movable movable)
      • moveRight

        public void moveRight​(Movable movable)