• Manual
  • Scripting API
  • Changelog
  • Contact
Search Results for

    Show / Hide Table of Contents
    • BattleBehaviour
      • BattleBehaviour.Fusion
        • FusionManager
        • GameCharacterFusion
      • Battle
      • BossSize
      • CharacterGroup
      • ScriptableBattlePosition
      • ScriptableBattleStage
      • TeamData
      • BattleBehaviour.Backup
        • BackupState
        • BattleBackup
    • GameActors
      • GameActor
      • GameCharacter
      • GameCharacter.AIState
      • GameItem
    • States
      • BattleState
      • ChangeStageState
      • FightState
      • FightState.LoseCondition
      • FightState.WinCondition
      • PreparationState
      • ResetSceneState
    • Battlefield
      • BattleGrid
      • BattleGrid.GridType
      • Bench
      • GridCell
      • GridCellEffect
      • SellZone
    • BattleUI
      • CharacterEnergyUI
      • CharacterHealthUI
      • CharacterStatsUI
      • DamagePopup
      • ItemDescriptionUI
      • ShopExpBarUI
      • StageUI
      • TraitDescriptionUI
      • TraitListUI
      • TraitListUI.OrderBy
      • TraitStatsUI
      • TraitUI
    • EditorScripts
      • BattleGridEditor
      • BattlePositionEditor
      • BenchEditor
      • GameCharacterEditor
      • NetworkObjectsListEditor
      • NFO_GameCharacterEditor
      • NGO_MenuActions
      • ReadOnlyDrawer
    • Formulas
      • BattleFormulas
      • BattleFormulas.DamageType
    • Movement
      • ApproximateAstarMovement
      • ExactAstarMovement
      • IBattleMovement
      • PathFinding2D
    • Multiplayer
      • BattleBehaviour
        • NetworkObjectList
        • StatsStruct
        • GameActors
          • NGO_GameCharacter
          • NGO_GameItem
        • Player
          • GamePlayer
          • IPlayer
        • States
          • MP_ConnectionState
          • MP_FightState
          • MP_PreparationState
      • ClientTransform
        • ClientNetworkTransform
      • EditorScripts
        • NGO_MenuActions
      • GamingServices
        • GamingServices
          • GamingServices.RelayHostData
          • GamingServices.RelayJoinData
      • UI
        • NetworkManagerUI
    • Shop
      • ScriptableShopItem
      • ShopCharacter
      • ShopGameItem
      • ShopItemInfo
      • ShopLevel
      • ShopLevelManager
      • ShopManager
      • ShopGUI
        • CurrencyUI
        • EquippedItemDescriptionUI
        • ShopItemUI
        • ShopUI
        • SpecialAttackDescriptionUI
        • Timer
      • ShopList
        • IShopList
        • ScriptableDeckList
        • ScriptableGroupItemList
        • ScriptableIndividualItemList
        • ShopItemList
    • Skills
      • ApplyBuffOnHitEffect
      • ApplyDebuffOnHitEffect
      • ArrowEffect
      • BuffEffect
      • BuffEffectInfo
      • FixedDamageOverTimeEffect
      • HealthMeteoriteAllEffect
      • HealthStealEffect
      • IAttackEffect
      • MeleeEffect
      • MeteoriteEffect
      • OnHitEffect
      • Projectile
      • RangedEffect
      • SimpleBuffEffect
      • SwordEffect
      • VariableDamageOverTimeEffect
    • Stats
      • CharacterStats
      • CharacterStats.CharacterStat
      • ItemModificator
      • StatModificator
      • StatsModificator
      • StatsModificator.ModificatorType
      • Trait
      • TraitOption
      • TraitOption.TraitTarget
    • Utility
      • AutoBattleSettings
      • ReadOnlyAttribute
      • UIUtility

    Class IBattleMovement

    Determine how the characters move and choose the target.

    Inheritance
    Object
    IBattleMovement
    ApproximateAstarMovement
    ExactAstarMovement
    Namespace: AutoBattleFramework.Movement
    Assembly: cs.temp.dll.dll
    Syntax
    public abstract class IBattleMovement

    Constructors

    IBattleMovement()

    Declaration
    public IBattleMovement()

    Methods

    CharacterMovement(GameCharacter)

    Main method of movement. It is responsible for setting a target and moving the character.

    Declaration
    public virtual void CharacterMovement(GameCharacter ai)
    Parameters
    Type Name Description
    GameCharacter ai

    Dead(GameCharacter)

    Set the caracter state as Dead

    Declaration
    public void Dead(GameCharacter character)
    Parameters
    Type Name Description
    GameCharacter character

    FindNearestEnemy(GameCharacter)

    Given a character, search for the nearest enemy character.

    Declaration
    protected virtual GameCharacter FindNearestEnemy(GameCharacter character)
    Parameters
    Type Name Description
    GameCharacter character

    Character looking for an enemy.

    Returns
    Type Description
    GameCharacter

    Nearest enemy character from the given character.

    MoveTo(GameCharacter, GridCell, Boolean)

    Determines the next position to which the character will move.

    Declaration
    protected virtual void MoveTo(GameCharacter character, GridCell cell, bool forceToCenter = false)
    Parameters
    Type Name Description
    GameCharacter character

    Character to be moved.

    GridCell cell

    Final destination to which you want to move the character.

    Boolean forceToCenter

    Move the character to the center of the cell. Used when the final destination has been reached and proceeds to attack.

    NoTarget(GameCharacter)

    Set the character state as NoTarget

    Declaration
    public void NoTarget(GameCharacter character)
    Parameters
    Type Name Description
    GameCharacter character

    Character without target.

    ResolveTie(GameCharacter)

    This method is invoked to solve the problem of two characters arriving at the same square. The second one that has arrived moves to the nearest unoccupied square.

    Declaration
    public virtual void ResolveTie(GameCharacter character)
    Parameters
    Type Name Description
    GameCharacter character

    Second character that has arrived in the cell.

    SetTargetAndMove(GameCharacter, GameCharacter)

    Set the enemy target, the target cell to move and start the movement to that cell.

    Declaration
    protected virtual GridCell SetTargetAndMove(GameCharacter character, GameCharacter enemy)
    Parameters
    Type Name Description
    GameCharacter character

    Character to set target.

    GameCharacter enemy

    Enemy character that os the current target.

    Returns
    Type Description
    GridCell

    Target cell where the character will move.

    In This Article
    Back to top Auto-Battle Framework documentation