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

    Cell that composes the BattleGrid and Bench, and that allows the movement and battle of characters.

    Inheritance
    Object
    GridCell
    Namespace: AutoBattleFramework.Battlefield
    Assembly: cs.temp.dll.dll
    Syntax
    public class GridCell : MonoBehaviour

    Fields

    CanPlaceCharacter

    Index of the player who can place characters on this cell. Used to prevent characters from different teams from occupying cells belonging to other teams.

    Declaration
    public int CanPlaceCharacter
    Field Value
    Type Description
    Int32

    distancesToOtherCells

    Distance from this cell to the rest of the cells in the grid.

    Declaration
    public int[] distancesToOtherCells
    Field Value
    Type Description
    Int32[]

    grid

    Reference to the grid where the cell is located.

    Declaration
    public BattleGrid grid
    Field Value
    Type Description
    BattleGrid

    Neighbors

    Cell neighbors. If the cell type is hexagonal, it will have up to 6 neighbors, if it is square, it will have up to 4 neighbors.

    Declaration
    public List<GridCell> Neighbors
    Field Value
    Type Description
    List<GridCell>

    shopItem

    The GameCharacter or GameItem that is occupying the cell.

    Declaration
    public GameActor shopItem
    Field Value
    Type Description
    GameActor

    Methods

    DistanceToOtherCell(GridCell)

    Get the cell distance between this cell and other.

    Declaration
    public int DistanceToOtherCell(GridCell cell)
    Parameters
    Type Name Description
    GridCell cell

    Cell in the grid

    Returns
    Type Description
    Int32

    Distance between both cells.

    FindNearestGridCell(Single, GridCell, GameCharacter)

    Given another cell and the character occupying it, find the nearest unoccupied cell within the radius. If the cell passed as a parameter is within the radius and is occupied by the character, it returns that one instead.

    Declaration
    public GridCell FindNearestGridCell(float radius, GridCell other, GameCharacter character)
    Parameters
    Type Name Description
    Single radius

    Radius where to look for the nearest cell.

    GridCell other

    Another cell occupied by the character.

    GameCharacter character

    Character that occupies the cell passed as parameter.

    Returns
    Type Description
    GridCell

    Cell closest to this one within the radius. If the parameter cell is within the radius and is occupied by the parameter character, it returns that one instead.

    SetDragEffect(Boolean)

    Sets the value of the drag effect.

    Declaration
    public void SetDragEffect(bool value)
    Parameters
    Type Name Description
    Boolean value

    If should change the color of the cell to DragOver.

    In This Article
    Back to top Auto-Battle Framework documentation