Search Results for

    Show / Hide Table of Contents

    Class FactionManager

    Inheritance
    Object
    FactionManager
    Implements
    IFactionManager
    Namespace: RTSEngine.Faction
    Assembly: cs.temp.dll.dll
    Syntax
    public class FactionManager : IFactionManager

    Properties

    BuildingCenters

    Declaration
    public IReadOnlyList<IBuilding> BuildingCenters { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyList<IBuilding>

    Buildings

    Declaration
    public IReadOnlyList<IBuilding> Buildings { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyList<IBuilding>

    DropOffTargets

    Declaration
    public IReadOnlyList<IFactionEntity> DropOffTargets { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyList<IFactionEntity>

    FactionEntities

    Declaration
    public IEnumerable<IFactionEntity> FactionEntities { get; }
    Property Value
    Type Description
    IEnumerable<IFactionEntity>

    FactionEntityCategoryToAmount

    Declaration
    public IReadOnlyDictionary<string, int> FactionEntityCategoryToAmount { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyDictionary<String, Int32>

    FactionEntityToAmount

    Declaration
    public IReadOnlyDictionary<string, int> FactionEntityToAmount { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyDictionary<String, Int32>

    FactionID

    Declaration
    public int FactionID { get; }
    Property Value
    Type Description
    Int32

    gameMgr

    Declaration
    protected IGameManager gameMgr { get; }
    Property Value
    Type Description
    IGameManager

    globalEvent

    Declaration
    protected IGlobalEventPublisher globalEvent { get; }
    Property Value
    Type Description
    IGlobalEventPublisher

    MainEntities

    Declaration
    public IEnumerable<IFactionEntity> MainEntities { get; }
    Property Value
    Type Description
    IEnumerable<IFactionEntity>

    Slot

    Declaration
    public IFactionSlot Slot { get; }
    Property Value
    Type Description
    IFactionSlot

    Units

    Declaration
    public IEnumerable<IUnit> Units { get; }
    Property Value
    Type Description
    IEnumerable<IUnit>

    WorkerUnits

    Declaration
    public IReadOnlyList<IUnit> WorkerUnits { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyList<IUnit>

    Methods

    AssignLimits(IEnumerable<FactionEntityAmountLimit>)

    Declaration
    public bool AssignLimits(IEnumerable<FactionEntityAmountLimit> newLimits)
    Parameters
    Type Name Description
    IEnumerable<FactionEntityAmountLimit> newLimits
    Returns
    Type Description
    Boolean

    GetAttackUnits(Single)

    Declaration
    public IEnumerable<IUnit> GetAttackUnits(float range = 1F)
    Parameters
    Type Name Description
    System.Single range
    Returns
    Type Description
    IEnumerable<IUnit>

    GetFactionEntitiesListByCode(String)

    Declaration
    public IReadOnlyList<IFactionEntity> GetFactionEntitiesListByCode(string code)
    Parameters
    Type Name Description
    String code
    Returns
    Type Description
    System.Collections.Generic.IReadOnlyList<IFactionEntity>

    HasReachedLimit(IEntity)

    Declaration
    public bool HasReachedLimit(IEntity entity)
    Parameters
    Type Name Description
    IEntity entity
    Returns
    Type Description
    Boolean

    HasReachedLimit(String, IEnumerable<String>)

    Declaration
    public bool HasReachedLimit(string code, IEnumerable<string> category)
    Parameters
    Type Name Description
    String code
    IEnumerable<String> category
    Returns
    Type Description
    Boolean

    HasReachedLimit(String, String)

    Declaration
    public bool HasReachedLimit(string code, string category)
    Parameters
    Type Name Description
    String code
    String category
    Returns
    Type Description
    Boolean

    Init(IGameManager, IFactionSlot)

    Declaration
    public void Init(IGameManager gameMgr, IFactionSlot slot)
    Parameters
    Type Name Description
    IGameManager gameMgr
    IFactionSlot slot

    UpdateLimit(IEntity, Boolean)

    Declaration
    public void UpdateLimit(IEntity entity, bool increment)
    Parameters
    Type Name Description
    IEntity entity
    Boolean increment

    Events

    OwnFactionEntityAdded

    Declaration
    public event CustomEventHandler<IFactionManager, EntityEventArgs<IFactionEntity>> OwnFactionEntityAdded
    Event Type
    Type Description
    CustomEventHandler<IFactionManager, EntityEventArgs<IFactionEntity>>

    OwnFactionEntityRemoved

    Declaration
    public event CustomEventHandler<IFactionManager, EntityEventArgs<IFactionEntity>> OwnFactionEntityRemoved
    Event Type
    Type Description
    CustomEventHandler<IFactionManager, EntityEventArgs<IFactionEntity>>

    Implements

    IFactionManager
    In This Article
    Back to top Unity RTS Engine Documentation