Class SportDeviceBrokenState


  • public class SportDeviceBrokenState
    extends AbstractActionDeviceState
    The class implements the sport device logic in the broken state.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void action​(AbstractActionDevice deviceUsable, Creature person)
      The method implemented by the state pattern.
      void consume​(AbstractDevice device)
      Method calculating consuming of device.
      boolean isFree()
      The method determines if the device is not occupied by any person.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SportDeviceBrokenState

        public SportDeviceBrokenState()