Interface Movable

All Known Implementing Classes:
Player

public interface Movable
Defines if an Object is Dynamic e.g. can move.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Starts moving in defined direction.
    void
    Stops moving for one direction.
  • Method Details

    • startMoving

      void startMoving(WalkDirection direction)
      Starts moving in defined direction. Should NOT move in two directions. e.g. left and up.
      Parameters:
      direction - Direction to move.
    • stopMoving

      void stopMoving(WalkDirection direction)
      Stops moving for one direction. For example if Object moves left, but was overridden, it does not stop if it should stop moving right.
      Parameters:
      direction - Direction to stop moving.