Search Results for

    Show / Hide Table of Contents

    Class GameObjectBase

    Inheritance
    System.Object
    GameObjectBase
    AIBaseClient
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Oasys.Common.GameObject
    Assembly: Oasys.Common.dll
    Syntax
    public abstract class GameObjectBase

    Constructors

    GameObjectBase()

    Declaration
    protected GameObjectBase()

    GameObjectBase(Single)

    Declaration
    protected GameObjectBase(float gameTime)
    Parameters
    Type Name Description
    System.Single gameTime

    Properties

    AIManager

    Declaration
    public abstract AIManager AIManager { get; }
    Property Value
    Type Description
    AIManager

    Armor

    Gets the armor.

    Declaration
    public abstract float Armor { get; }
    Property Value
    Type Description
    System.Single

    AttackRange

    Gets the attack Range in 100th teemos.

    Declaration
    public abstract float AttackRange { get; }
    Property Value
    Type Description
    System.Single

    AttackSpeed

    The attackspeed. Attacks per second. 1 / AttackDelay.

    Declaration
    public float AttackSpeed { get; }
    Property Value
    Type Description
    System.Single

    BasicAttackInfo

    Gets the information about the basic attack.

    Declaration
    public abstract SpellClassData BasicAttackInfo { get; }
    Property Value
    Type Description
    SpellClassData

    BuffManager

    Gets the manager for the buffs.

    Declaration
    public abstract BuffManager BuffManager { get; }
    Property Value
    Type Description
    BuffManager

    CombatType

    Gets the combat type.

    Declaration
    public abstract CombatTypes CombatType { get; }
    Property Value
    Type Description
    CombatTypes

    Direction

    Gets the direction it is facing towards/at.

    Declaration
    public abstract Vector3 Direction { get; }
    Property Value
    Type Description
    SharpDX.Vector3

    Distance

    Gets the distance between the player.

    Declaration
    public abstract float Distance { get; }
    Property Value
    Type Description
    System.Single

    EffectiveArmorHealth

    Gets the health with armor.

    Declaration
    public abstract float EffectiveArmorHealth { get; }
    Property Value
    Type Description
    System.Single

    EffectiveMagicHealth

    Gets the health with magic resist.

    Declaration
    public abstract float EffectiveMagicHealth { get; }
    Property Value
    Type Description
    System.Single

    EncryptedID

    Gets the encryped server Object ID.

    Declaration
    public abstract int EncryptedID { get; }
    Property Value
    Type Description
    System.Int32

    Gold

    Gets the amount of gold it has.

    Declaration
    public abstract float Gold { get; }
    Property Value
    Type Description
    System.Single

    Health

    Gets the health.

    Declaration
    public abstract float Health { get; }
    Property Value
    Type Description
    System.Single

    HealthBarScreenPosition

    Gets the position of the health on the screen.

    Declaration
    public abstract Vector2 HealthBarScreenPosition { get; }
    Property Value
    Type Description
    SharpDX.Vector2

    HealthPercent

    Declaration
    public float HealthPercent { get; }
    Property Value
    Type Description
    System.Single

    Index

    Gets the index within the object manager.

    Declaration
    public abstract short Index { get; }
    Property Value
    Type Description
    System.Int16

    IsAlive

    Checks whether if it is alive.

    Declaration
    public abstract bool IsAlive { get; }
    Property Value
    Type Description
    System.Boolean

    IsAlly

    Declaration
    public bool IsAlly { get; }
    Property Value
    Type Description
    System.Boolean

    IsBasicAttacking

    Declaration
    public bool IsBasicAttacking { get; }
    Property Value
    Type Description
    System.Boolean

    IsCastingSpell

    Checks whether if it is casting a spell.

    Declaration
    public abstract bool IsCastingSpell { get; }
    Property Value
    Type Description
    System.Boolean

    IsEnemy

    Declaration
    public bool IsEnemy { get; }
    Property Value
    Type Description
    System.Boolean

    IsJungle

    Declaration
    public bool IsJungle { get; }
    Property Value
    Type Description
    System.Boolean

    IsMe

    Checks whether if the champion is the player.

    Declaration
    public bool IsMe { get; }
    Property Value
    Type Description
    System.Boolean

    IsNeutral

    Declaration
    public bool IsNeutral { get; }
    Property Value
    Type Description
    System.Boolean

    IsTargetable

    Checks whether if is targetable by the player.

    Declaration
    public abstract bool IsTargetable { get; }
    Property Value
    Type Description
    System.Boolean

    IsTargetDummy

    Declaration
    public bool IsTargetDummy { get; }
    Property Value
    Type Description
    System.Boolean

    IsVisible

    Checks whether if it is visible to the player's sight in-game.

    Declaration
    public abstract bool IsVisible { get; }
    Property Value
    Type Description
    System.Boolean

    Level

    Gets the current level.

    Declaration
    public abstract int Level { get; }
    Property Value
    Type Description
    System.Int32

    MagicalShield

    Gets the amount of magical shield applied.

    Declaration
    public abstract float MagicalShield { get; }
    Property Value
    Type Description
    System.Single

    MagicResist

    Gets the magic resist.

    Declaration
    public abstract float MagicResist { get; }
    Property Value
    Type Description
    System.Single

    Mana

    Gets the mana.

    Declaration
    public abstract float Mana { get; }
    Property Value
    Type Description
    System.Single

    MaxHealth

    Gets the max health.

    Declaration
    public abstract float MaxHealth { get; }
    Property Value
    Type Description
    System.Single

    MaxMana

    Gets the max mana.

    Declaration
    public abstract float MaxMana { get; }
    Property Value
    Type Description
    System.Single

    ModelName

    Gets the character model name. For champions, it is the champion name.

    Declaration
    public abstract string ModelName { get; }
    Property Value
    Type Description
    System.String

    Name

    Gets the object's name. For player, it is their username.

    Declaration
    public abstract string Name { get; }
    Property Value
    Type Description
    System.String

    NetworkID

    Gets the ID on the network stream.

    Declaration
    public abstract uint NetworkID { get; }
    Property Value
    Type Description
    System.UInt32

    NeutralShield

    Gets the amount of neutral shield applied.

    Declaration
    public abstract float NeutralShield { get; }
    Property Value
    Type Description
    System.Single

    OnMyTeam

    Declaration
    public bool OnMyTeam { get; }
    Property Value
    Type Description
    System.Boolean

    PhysicalShield

    Gets the amount of physical shields applied.

    Declaration
    public abstract float PhysicalShield { get; }
    Property Value
    Type Description
    System.Single

    Position

    Gets the current position.

    Declaration
    public abstract Vector3 Position { get; }
    Property Value
    Type Description
    SharpDX.Vector3

    Team

    Gets the team.

    Declaration
    public abstract TeamFlag Team { get; }
    Property Value
    Type Description
    TeamFlag

    TrueAttackRange

    Gets the true attack range including bounding radius(hitbox radius) in 100th teemos.

    Declaration
    public abstract float TrueAttackRange { get; }
    Property Value
    Type Description
    System.Single

    UnitComponentInfo

    Gets the unit's component information.

    Declaration
    public abstract UnitComponentInfo UnitComponentInfo { get; }
    Property Value
    Type Description
    UnitComponentInfo

    UnitStats

    Gets the statistical information about the unit. Statistical values shown next to the champion icon at the bottom.

    Declaration
    public abstract UnitStats UnitStats { get; }
    Property Value
    Type Description
    UnitStats

    W2S

    Get the transformed WorldToScreen position.

    Declaration
    public abstract Vector2 W2S { get; }
    Property Value
    Type Description
    SharpDX.Vector2

    WorldToMap

    Gets the current position in map on screen.

    Declaration
    public abstract Vector2 WorldToMap { get; }
    Property Value
    Type Description
    SharpDX.Vector2

    Methods

    As<T>()

    Creates a new instance of desired type derived from GameObjectBase

    Declaration
    public T As<T>()
        where T : GameObjectBase
    Returns
    Type Description
    T

    Object of desired type T

    Type Parameters
    Name Description
    T

    Desired type

    DistanceTo(Vector3)

    Gets the distance between the given vector3 in-game position.

    Declaration
    public abstract float DistanceTo(Vector3 position)
    Parameters
    Type Name Description
    SharpDX.Vector3 position
    Returns
    Type Description
    System.Single

    GetAttackCastDelay()

    Gets the time between cast animation and the actual cast of the basic attack.

    Declaration
    public abstract float GetAttackCastDelay()
    Returns
    Type Description
    System.Single

    GetAttackDelay()

    Gets the time delay between basic attacks.

    Declaration
    public abstract float GetAttackDelay()
    Returns
    Type Description
    System.Single

    GetCurrentCastingSpell()

    Gets the current casting spell.

    Declaration
    public abstract SpellActiveEntry GetCurrentCastingSpell()
    Returns
    Type Description
    SpellActiveEntry

    GetSpellBook()

    Gets the spellbook.

    Declaration
    public abstract SpellBook GetSpellBook()
    Returns
    Type Description
    SpellBook

    IsObject(ObjectTypeFlag)

    Checks whether if it is an object type given.

    Declaration
    public bool IsObject(ObjectTypeFlag oTF)
    Parameters
    Type Name Description
    ObjectTypeFlag oTF
    Returns
    Type Description
    System.Boolean

    Log()

    Declaration
    public void Log()

    PredictHealth(Int32)

    Returns the unit health after a set time delay milliseconds.

    Declaration
    public float PredictHealth(int time)
    Parameters
    Type Name Description
    System.Int32 time
    Returns
    Type Description
    System.Single

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.Object.ToString()

    Extension Methods

    Extensions.In<T>(T, T[])
    Extensions.Distance(GameObjectBase, GameObjectBase)
    Extensions.Distance(GameObjectBase, Vector3)
    Extensions.Distance(GameObjectBase, Vector2)
    Extensions.DistanceSquared(GameObjectBase, GameObjectBase)
    Extensions.DistanceSquared(GameObjectBase, Vector3)
    Extensions.DistanceSquared(GameObjectBase, Vector2)
    Extensions.DistanceToPlayer(GameObjectBase)
    Extensions.IsBothFacing(GameObjectBase, GameObjectBase)
    Extensions.IsFacing(GameObjectBase, GameObjectBase)
    Extensions.IsMelee(GameObjectBase)
    Extensions.IsValidTarget(GameObjectBase, Single, Boolean, Vector3)
    Extensions.GetWaypoints(GameObjectBase)
    Geometry.Distance(GameObjectBase, GameObjectBase, Boolean)
    Geometry.Distance(GameObjectBase, Vector3, Boolean)
    Geometry.Distance(GameObjectBase, Vector2, Boolean)
    Geometry.Distance3D(GameObjectBase, GameObjectBase, Boolean)
    ☀
    ☾
    In This Article
    Back to top
    Generated by DocFX
    ☀
    ☾