• 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 PathFinding2D

    A* algorithm, used by GameCharacter to move through the BattleGrid. This script is a modification of UnityPathFinding2D, under MIT license. The original script can be found at: https://github.com/folospace/UnityPathFinding2D

    Inheritance
    Object
    PathFinding2D
    Namespace: AutoBattleFramework.Movement
    Assembly: cs.temp.dll.dll
    Syntax
    public class PathFinding2D

    Methods

    find(GridCell, GridCell, Battle, Boolean)

    Get the path from an initial cell to a target cell.

    Declaration
    public static List<GridCell> find(GridCell from, GridCell to, Battle battle, bool GetPathWithoutObstacles = false)
    Parameters
    Type Name Description
    GridCell from

    Initial cell

    GridCell to

    Target cell

    Battle battle

    Current battle

    Boolean GetPathWithoutObstacles

    Optional parameter. Set it to true to ignore other GameCharacters. Useful to find the distance between cells.

    Returns
    Type Description
    List<GridCell>

    List of cells that build a path from the initial to the final cell.

    FindNeighbors4x(GridCell, BattleGrid)

    Find the neighbors cells of a given cell, used in Squared grid types.

    Declaration
    public static List<GridCell> FindNeighbors4x(GridCell cell, BattleGrid grid)
    Parameters
    Type Name Description
    GridCell cell

    Cell to look for neighbors.

    BattleGrid grid

    Current grid of cells.

    Returns
    Type Description
    List<GridCell>

    List of neighbor cells.

    FindNeighbors6x(GridCell, BattleGrid)

    Find the neighbors cells of a given cell, used in Hex grid types.

    Declaration
    public static List<GridCell> FindNeighbors6x(GridCell cell, BattleGrid grid)
    Parameters
    Type Name Description
    GridCell cell

    Cell to look for neighbors.

    BattleGrid grid

    Current grid of cells.

    Returns
    Type Description
    List<GridCell>

    List of neighbor cells.

    In This Article
    Back to top Auto-Battle Framework documentation