Search Results for

    Show / Hide Table of Contents

    Class BuildingHealth

    Inheritance
    Object
    EntityHealth
    FactionEntityHealth
    BuildingHealth
    Implements
    IEntityPreInitializable
    IBuildingHealth
    IFactionEntityHealth
    IEntityHealth
    IMonoBehaviour
    IEntityPostInitializable
    Inherited Members
    FactionEntityHealth.CanBeAttacked
    FactionEntityHealth.AttackTargetPositionGetter
    FactionEntityHealth.GetAttackTargetPosition(IEntity)
    FactionEntityHealth.DOTHandlers
    FactionEntityHealth.FactionEntity
    FactionEntityHealth.OnEntityHealthInit()
    FactionEntityHealth.CanAdd(HealthUpdateArgs)
    FactionEntityHealth.AddDamageOverTime(DamageOverTimeData, Int32, IEntity, Single)
    EntityHealth.tabID
    EntityHealth.IsInitialized
    EntityHealth.Entity
    EntityHealth.MaxHealth
    EntityHealth.CurrHealth
    EntityHealth.LockHealth
    EntityHealth.HasMaxHealth
    EntityHealth.HealthRatio
    EntityHealth.CanIncrease
    EntityHealth.CanDecrease
    EntityHealth.HoverHealthBarData
    EntityHealth.HoverHealthBarY
    EntityHealth.IsDead
    EntityHealth.TerminatedBy
    EntityHealth.stateHandler
    EntityHealth.States
    EntityHealth.gameMgr
    EntityHealth.inputMgr
    EntityHealth.logger
    EntityHealth.globalEvent
    EntityHealth.selectionMgr
    EntityHealth.effectObjPool
    EntityHealth.audioMgr
    EntityHealth.resourceMgr
    EntityHealth.playerMsgHandler
    EntityHealth.EntityHealthUpdated
    EntityHealth.EntityMaxHealthUpdated
    EntityHealth.EntityDead
    EntityHealth.RaiseEntityMaxHealthUpdated(HealthUpdateArgs)
    EntityHealth.RaiseEntityHealthUpdated(HealthUpdateArgs)
    EntityHealth.RaiseEntityDead(DeadEventArgs)
    EntityHealth.OnEntityPreInit(IGameManager, IEntity)
    EntityHealth.OnInitialHealthAdded()
    EntityHealth.Disable()
    EntityHealth.SetMax(HealthUpdateArgs)
    EntityHealth.SetMaxLocal(HealthUpdateArgs)
    EntityHealth.Add(HealthUpdateArgs)
    EntityHealth.AddLocal(HealthUpdateArgs, Boolean)
    EntityHealth.OnZeroHealthReached(HealthUpdateArgs)
    EntityHealth.CanDestroy(Boolean, IEntity)
    EntityHealth.Destroy(Boolean, IEntity)
    EntityHealth.DestroyLocal(Boolean, IEntity)
    Namespace: RTSEngine.Health
    Assembly: cs.temp.dll.dll
    Syntax
    public class BuildingHealth : FactionEntityHealth, IEntityPreInitializable, IBuildingHealth, IFactionEntityHealth, IEntityHealth, IMonoBehaviour, IEntityPostInitializable

    Properties

    Building

    Declaration
    public IBuilding Building { get; }
    Property Value
    Type Description
    IBuilding

    buildingMgr

    Declaration
    protected IBuildingManager buildingMgr { get; }
    Property Value
    Type Description
    IBuildingManager

    BuildTime

    Declaration
    public float BuildTime { get; }
    Property Value
    Type Description
    System.Single

    DestroyObjectDelay

    Declaration
    public override float DestroyObjectDelay { get; }
    Property Value
    Type Description
    System.Single
    Overrides
    EntityHealth.DestroyObjectDelay

    EntityType

    Declaration
    public override EntityType EntityType { get; }
    Property Value
    Type Description
    EntityType
    Overrides
    EntityHealth.EntityType

    Methods

    CanRepair(Int32, Boolean)

    Declaration
    public bool CanRepair(int healthToAdd, bool takeResources = true)
    Parameters
    Type Name Description
    Int32 healthToAdd
    Boolean takeResources
    Returns
    Type Description
    Boolean

    OnDestroyed(Boolean, IEntity)

    Declaration
    protected override void OnDestroyed(bool upgrade, IEntity source)
    Parameters
    Type Name Description
    Boolean upgrade
    IEntity source
    Overrides
    FactionEntityHealth.OnDestroyed(Boolean, IEntity)

    OnDisabled()

    Declaration
    protected override void OnDisabled()
    Overrides
    EntityHealth.OnDisabled()

    OnEntityPostInit(IGameManager, IEntity)

    Declaration
    public void OnEntityPostInit(IGameManager gameMgr, IEntity entity)
    Parameters
    Type Name Description
    IGameManager gameMgr
    IEntity entity

    OnFactionEntityHealthInit()

    Declaration
    protected override void OnFactionEntityHealthInit()
    Overrides
    FactionEntityHealth.OnFactionEntityHealthInit()

    OnHealthUpdated(HealthUpdateArgs)

    Declaration
    protected override void OnHealthUpdated(HealthUpdateArgs args)
    Parameters
    Type Name Description
    HealthUpdateArgs args
    Overrides
    FactionEntityHealth.OnHealthUpdated(HealthUpdateArgs)

    OnMaxHealthReached(HealthUpdateArgs)

    Declaration
    protected override void OnMaxHealthReached(HealthUpdateArgs args)
    Parameters
    Type Name Description
    HealthUpdateArgs args
    Overrides
    EntityHealth.OnMaxHealthReached(HealthUpdateArgs)

    Implements

    IEntityPreInitializable
    IBuildingHealth
    IFactionEntityHealth
    IEntityHealth
    IMonoBehaviour
    IEntityPostInitializable
    In This Article
    Back to top Unity RTS Engine Documentation