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

    Game item that can be attached to GameCharacter when dragged over it.

    Inheritance
    Object
    GameActor
    GameItem
    Inherited Members
    GameActor.CanBeSold
    GameActor.SellFor
    GameActor.info
    GameActor.CurrentGridCell
    GameActor.CurrentDragCell
    GameActor.CanBeMoved
    GameActor.PreviousCell
    GameActor.ForceRepath
    GameActor.isDragged
    GameActor.networkObject
    GameActor.getInitialPosition()
    GameActor.OnMouseDrag()
    GameActor.OnMouseOver()
    GameActor.SellAttempt()
    GameActor.SellAttemptCancel()
    GameActor.IsBeingDragged()
    GameActor.GetCurrentCell()
    GameActor.GetTeamIndex()
    Namespace: AutoBattleFramework.BattleBehaviour.GameActors
    Assembly: cs.temp.dll.dll
    Syntax
    public class GameItem : GameActor

    Fields

    itemModificator

    The stats modifiers that will be applied when equipping the character with this item.

    Declaration
    public ItemModificator itemModificator
    Field Value
    Type Description
    ItemModificator

    Methods

    AddItemModificator(GameCharacter)

    Adds the item's itemModificator to the character's itemModificators.

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

    Character to be equipped with the item

    AfterBought()

    The items does nothing after being bought

    Declaration
    public override void AfterBought()
    Overrides
    GameActor.AfterBought()

    Buy(GameActor)

    When the object is purchased, it is created in an empty slot in the ItemBenches.

    Declaration
    public override GameActor Buy(GameActor shopItem)
    Parameters
    Type Name Description
    GameActor shopItem

    This item.

    Returns
    Type Description
    GameActor

    Bough item in the ItemBenches.

    Overrides
    GameActor.Buy(GameActor)

    CancelDrag()

    Cancels the dragging of the item.

    Declaration
    public void CancelDrag()

    MoveGameItemTo(GridCell)

    Forces the movement of an item to a cell.

    Declaration
    protected void MoveGameItemTo(GridCell cell)
    Parameters
    Type Name Description
    GridCell cell

    New cell where the item is located

    OnDragObjectAction()

    Allows dragging of items.

    Declaration
    public override void OnDragObjectAction()
    Overrides
    GameActor.OnDragObjectAction()

    OnMouseDownAction()

    Start the drag.

    Declaration
    public override void OnMouseDownAction()
    Overrides
    GameActor.OnMouseDownAction()

    OnMouseOverAction()

    Diplays the interface describing the item.

    Declaration
    public override void OnMouseOverAction()
    Overrides
    GameActor.OnMouseOverAction()

    OnMouseUpAction()

    Allows an item to be equipped to a character, to be moved within the ItemBenches or to exchange its position with that of another item. In Android, if the item is dragged to the same cell, shows the description of the item.

    Declaration
    public override void OnMouseUpAction()
    Overrides
    GameActor.OnMouseUpAction()

    Sell()

    Sell the character and gain currency.

    Declaration
    public override void Sell()
    Overrides
    GameActor.Sell()

    SetVariablesOnBuy(GameItem, IPlayer)

    Declaration
    protected virtual void SetVariablesOnBuy(GameItem item, IPlayer player = null)
    Parameters
    Type Name Description
    GameItem item
    IPlayer player

    ShowUI(Boolean)

    Diplays the itemDescriptionUI describing the item.

    Declaration
    public override GameObject ShowUI(bool show)
    Parameters
    Type Name Description
    Boolean show

    Show or hide the UI.

    Returns
    Type Description
    GameObject

    The gameobject of itemDescriptionUI.

    Overrides
    GameActor.ShowUI(Boolean)

    Start()

    Declaration
    protected virtual void Start()

    SwapItemsInCells(GridCell, GridCell)

    If an item is dragged to the position where another item is located, they exchange their positions.

    Declaration
    protected void SwapItemsInCells(GridCell c1, GridCell c2)
    Parameters
    Type Name Description
    GridCell c1

    Cell where the first item is located.

    GridCell c2

    Cell where the second item is located.

    Update()

    Declaration
    protected virtual void Update()
    In This Article
    Back to top Auto-Battle Framework documentation