Module

Screeps.Refillable

Package
purescript-screeps-classy
Repository
purescript/purescript-screeps

Corresponds to the Screeps API StructureExtension

#Refillable Source

#energy Source

energy :: forall a. Refillable a => a -> Int

#energyCapacity Source

energyCapacity :: forall a. Refillable a => a -> Int

#toRefillable Source

toRefillable :: forall s. Structure s => s -> Maybe AnyRefillable

Checks that structure is any Refillable.

#isNotFull Source

isNotFull :: forall a. Refillable a => a -> Boolean

Check whether Refillable is not at full capacity

#isFull Source

isFull :: forall a. Refillable a => a -> Boolean

Check whether Refillable is not at full capacity