ArmsControl Docs (17% documented)

ArmsControl Reference HPEffect Class Reference

HPEffect

Increases or decreases the hit points of its targets. Targets must conform to the IExistent protocol (in brynbellomy/GameObjects) to be affected by HPEffect.

  • Represents the change in HP per second to apply to each target of this payload.

    Declaration

    Swift

    public var deltaHP: HPType
  • The numeric type of the HP variable.

    Declaration

    Swift

    public typealias HPType = ExistentialComponent.HPType
  • The designated initializer.

    Declaration

    Swift

    public init(deltaHP d:HPType)

    Parameters

    deltaHP

    Represents the change in HP per second to apply to each target of this payload.

  • Performs the effect on the given targets.

    Declaration

    Swift

    public func execute(timeInterval:TimeInterval, targets:[SKNode])