Click or drag to resize

Unit Class

Inheritance Hierarchy

Namespace:  Ensage
Assembly:  Ensage (in Ensage.dll) Version: 0.0.0.1
Syntax
C#
public class Unit : Entity

The Unit type exposes the following members.

Constructors
  NameDescription
Public methodUnit
Initializes a new instance of the Unit class
Top
Properties
  NameDescription
Public propertyActiveShop
Returns the current shop the unit has access to.
Public propertyAngles (Inherited from Entity.)
Public propertyAnimation (Inherited from Entity.)
Public propertyArmor
Returns the total armor of the unit.
Public propertyArmorType
Public propertyAttackCapability
Returns the attack capability of the unit.
Public propertyAttackDamageType
Public propertyAttackRange
Returns the base attack range of the unit.
Public propertyAttackSpeedValue
Returns the attack speed value.
Public propertyAttacksPerSecond
Returns the amount of auto-attacks in one second.
Public propertyAvailableShops
Returns all available shops which are in the range of the current unit.
Public propertyBaseArmor
Returns the base armor of the unit.
Public propertyBaseAttackTime
Public propertyBaseHealthRegeneration
Public propertyBaseManaRegeneration
Public propertyBaseMovementSpeed
Public propertyBKBChargesUsed
Returns the amount of BKB charges which were used by this unit.
Public propertyBonusDamage
Public propertyClassId Obsolete. (Inherited from Entity.)
Public propertyClassNetworkId
Gets an id representing a networked source engine class. This id will change very often.
(Inherited from Entity.)
Public propertyClassNetworkName
Gets the name of the id representing a networked source engine class.
(Inherited from Entity.)
Public propertyCollisionPadding
Public propertyCreateTime (Inherited from Entity.)
Public propertyDamageAverage
Returns (Min + Max Damage) / 2
Public propertyDamageResist
Returns the physical damage reduction (value between 0 and 1).
Public propertyDayVision
Returns the base day vision value of the unit.
Public propertyDeathTime
Public propertyDebuffState
Public propertyHandle (Inherited from Entity.)
Public propertyHasArcana
Public propertyHasBaseStatsChanged
Public propertyHasInventory
Returns true if the unit can carry items.
Public propertyHasSharedAbilities
Public propertyHasStolenScepter
Public propertyHasUpgradeableAbilities
Public propertyHealth (Inherited from Entity.)
Public propertyHealthBarOffset
Public propertyHealthRegeneration
Public propertyHullRadius
Public propertyIndex (Inherited from Entity.)
Public propertyInventory
Public propertyInvisiblityLevel
Public propertyIsAlive (Inherited from Entity.)
Public propertyIsAncient
Public propertyIsControllable
Tests if this unit is controllable by the local player.
Public propertyIsDominatable
Public propertyIsDormant (Inherited from Entity.)
Public propertyIsIllusion
Public propertyIsMelee
Public propertyIsMoving
Public propertyIsNeutral
Public propertyIsPhantom
Public propertyIsRanged
Public propertyIsSpawned
Public propertyIsSummoned
Public propertyIsValid (Inherited from Entity.)
Public propertyIsVisible (Inherited from Entity.)
Public propertyIsVisibleToEnemies
Public propertyIsWaitingToSpawn
Returns true if a creep or neutral unit has not been spawned yet.
Public propertyLevel
Public propertyLifeState (Inherited from Entity.)
Public propertyMagicDamageResist
Returns the magical damage reduction (value between 0 and 1).
Public propertyMana
Public propertyManaRegeneration
Public propertyMaximumDamage
Public propertyMaximumHealth (Inherited from Entity.)
Public propertyMaximumMana
Public propertyMinimapIcon
Public propertyMinimapIconSize
Public propertyMinimumDamage
Public propertyModelFilename
Returns the filename of the model used.
Public propertyModifiers
Public propertyMoveCapability
Returns the move capability of the unit.
Public propertyMovementSpeed
Gets the current movement speed.
Public propertyName (Overrides EntityName.)
Public propertyNetworkActivity
Public propertyNetworkAngles (Inherited from Entity.)
Public propertyNetworkName (Inherited from Entity.)
Public propertyNetworkPosition (Inherited from Entity.)
Public propertyNetworkRotation (Inherited from Entity.)
Public propertyNetworkRotationRad (Inherited from Entity.)
Public propertyNightVision
Returns the base night vision of the unit.
Public propertyOwner (Inherited from Entity.)
Public propertyPosition (Inherited from Entity.)
Public propertyProjectileCollisionSize
Public propertyRingRadius
Public propertyRotation (Inherited from Entity.)
Public propertyRotationDifference
The current rotation difference of the unit.
Public propertyRotationRad (Inherited from Entity.)
Public propertyScale (Inherited from Entity.)
Public propertySecondsPerAttack
Returns the amount of seconds which are needed for one auto-attack.
Public propertySpeed (Inherited from Entity.)
Public propertySpellbook
Public propertyTauntCooldown
Public propertyTeam (Inherited from Entity.)
Public propertyTotalDamageTaken
Public propertyUnitState
Public propertyUnitType
Top
Methods
  NameDescription
Public methodAddParticleEffect
Adds a particle effect to the entity.
(Inherited from Entity.)
Public methodAttack(Vector3)
Attack a target location.
Public methodAttack(PhysicalItem)
Attack a item on the ground.
Public methodAttack(Unit)
Attack a target unit.
Public methodAttack(Vector3, Boolean)
Attack a target location.
Public methodAttack(PhysicalItem, Boolean)
Attack a item on the ground.
Public methodAttack(Unit, Boolean)
Attack a target unit.
Public methodDropItem(Item, Vector3)
Drops an item to the ground.
Public methodDropItem(Item, Vector3, Boolean)
Drops an item to the ground.
Public methodEquals(Object) (Inherited from Entity.)
Public methodEquals(Entity) (Inherited from Entity.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFollow(Unit)
Move your unit to a target unit issuing the follow command.
Public methodFollow(Unit, Boolean)
Move your unit to a target unit issuing the follow command.
Public methodGetHashCode (Inherited from Entity.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGiveItem(Item, Unit)
Gives an item to another unit.
Public methodGiveItem(Item, Unit, Boolean)
Gives an item to another unit.
Public methodHold
Hold position.
Public methodHold(Boolean)
Hold position.
Public methodIsControllableByPlayer
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMove(Vector3)
Move to the target location.
Public methodMove(Vector3, Boolean)
Move to the target location.
Public methodMove(Vector3, Boolean, Boolean)
Move to the target location.
Public methodMoveToDirection(Vector3)
Move to the target location.
Public methodMoveToDirection(Vector3, Boolean)
Move to the target location.
Public methodPatrol(Vector3)
Patrol to the target location.
Public methodPatrol(Vector3, Boolean)
Patrol to the target location.
Public methodPickUpItem(PhysicalItem)
Move your unit to a item and pick it up.
Public methodPickUpItem(PhysicalItem, Boolean)
Move your unit to a item and pick it up.
Public methodPickUpRune(Rune)
Move your unit to a rune and pick it up.
Public methodPickUpRune(Rune, Boolean)
Move your unit to a rune and pick it up.
Public methodPlaySound
Plays a sound and returns a handle to the sound event.
(Inherited from Entity.)
Public methodSelect
Clears the old selection and selects the current entity.
(Inherited from Entity.)
Public methodSelect(Boolean)
Selects the current entity.
(Inherited from Entity.)
Public methodStop
Stop the current action.
Public methodStop(Boolean)
Stop the current action.
Public methodStop(Boolean, Boolean)
Stop the current action.
Public methodStopSound(String)
Stops the sound event with the given name.
(Inherited from Entity.)
Public methodStopSound(UInt64)
Stops the sound event with the given handle.
(Inherited from Entity.)
Public methodToString (Inherited from Entity.)
Top
Events
See Also