Function getBodyCost

  • Compute the energy cost of a creep body

    Parameters

    • body: readonly (BodyPartConstant | {} | {} | {} | {} | {} | {} | {} | {})[]

      Array of bodyparts Creep.body

    Returns number

    Energy cost of this body

Generated using TypeDoc