Search Results for

    Show / Hide Table of Contents

    Struct MovementSource

    Namespace: RTSEngine.Movement
    Assembly: cs.temp.dll.dll
    Syntax
    public struct MovementSource

    Fields

    disableMarker

    When False, the unit will enable its target position marker that reserves the target movement position so no other unit will use the same target position as its movement destination.

    Declaration
    public bool disableMarker
    Field Value
    Type Description
    Boolean

    fromTasksQueue

    True when the movement command is launched from a tasks queue

    Declaration
    public bool fromTasksQueue
    Field Value
    Type Description
    Boolean

    inMoveAttackChain

    True when the movement is part of an attack-move command chain that was initiated by the player.

    Declaration
    public bool inMoveAttackChain
    Field Value
    Type Description
    Boolean

    isMoveAttackRequest

    True when the movement is requesting to start a new move-attack chain.

    Declaration
    public bool isMoveAttackRequest
    Field Value
    Type Description
    Boolean

    isMoveAttackSource

    True when the unit attack component moves the unit after it finishes attacking its current target when attack-move was enabled by the player for the unit in a previous movement command.

    Declaration
    public bool isMoveAttackSource
    Field Value
    Type Description
    Boolean

    playerCommand

    Declaration
    public bool playerCommand
    Field Value
    Type Description
    Boolean

    sourceTargetComponent

    Declaration
    public IEntityTargetComponent sourceTargetComponent
    Field Value
    Type Description
    IEntityTargetComponent

    targetAddableUnit

    Declaration
    public IAddableUnit targetAddableUnit
    Field Value
    Type Description
    IAddableUnit

    targetAddableUnitPosition

    Declaration
    public Vector3 targetAddableUnitPosition
    Field Value
    Type Description
    Vector3

    testTargetInRange

    Declaration
    public bool testTargetInRange
    Field Value
    Type Description
    Boolean

    Methods

    BooleansToMask()

    Declaration
    public MovementSourceBooleans BooleansToMask()
    Returns
    Type Description
    MovementSourceBooleans

    IsTargetDestinationValid(TargetData<IEntity>)

    Declaration
    public bool IsTargetDestinationValid(TargetData<IEntity> target)
    Parameters
    Type Name Description
    TargetData<IEntity> target
    Returns
    Type Description
    Boolean
    In This Article
    Back to top Unity RTS Engine Documentation