Interface HTResourceView

  • All Implemented Interfaces:
    hiiragi283.core.api.storage.amount.HTAmountView

    
    public interface HTResourceView<RESOURCE extends HTResourceType<?>>
     implements HTAmountView
                        

    単一の不変のリソースを保持するインターフェースです。

    Since:

    0.1.0

    Author:

    Hiiragi Tsubasa

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract RESOURCE getResource() 保持しているリソースを取得します。
      abstract Integer getCapacity(RESOURCE resource) 指定したresourceから容量を取得します。
      Integer getCapacity() 容量を返します。
      Integer getNeeded(RESOURCE resource) 指定したresourceから空き容量を取得します。
      Fraction getLevelAsFraction(RESOURCE resource) 指定したresourceから占有率を取得します。
      Float getLevelAsFloat(RESOURCE resource) 占有率を返します。
      Boolean isEmpty() このビューが空かどうか判定します。
      • Methods inherited from class hiiragi283.core.api.storage.amount.HTAmountView

        getAmount, getLevelAsFloat, getLevelAsFraction, getNeeded
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait