Click or drag to resize

Actor Class

Represents a SA-MP actor.
Inheritance Hierarchy
SystemObject
  SampSharp.GameMode.ToolsDisposable
    SampSharp.GameMode.PoolsIdentifiedPoolActor
      SampSharp.GameMode.WorldActor

Namespace:  SampSharp.GameMode.World
Assembly:  SampSharp.GameMode (in SampSharp.GameMode.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public class Actor : IdentifiedPool<Actor>, 
	IWorldObject

The Actor type exposes the following members.

Constructors
  NameDescription
Public methodActor
Initializes a new instance of the Actor class
Top
Properties
  NameDescription
Public propertyFacingAngle
Gets the facing angle of this Actor.
Public propertyHealth
Gets the health of this Actor.
Public propertyId
Gets the identifier of this instance.
(Inherited from IdentifiedPoolTInstance.)
Public propertyIsDisposed
Gets whether this resource has been disposed.
(Inherited from Disposable.)
Public propertyIsInvulnerable
Gets or sets a value indicating whether this Actor is invulnerable.
Public propertyIsValid
Gets a value indicating whether this Actor is valid.
Public propertyStatic memberPoolSize
Gets the size of the actors pool.
Public propertyPosition
Gets the position of this Actor.
Public propertyVirtualWorld
Gets or sets the virtual world of this Actor.
Top
Methods
  NameDescription
Public methodApplyAnimation
Applies the specified animation to this Actor.
Protected methodAssertNotDisposed
Checks whether this instance has been disposed. If it has, it throws an exception.
(Inherited from Disposable.)
Public methodClearAnimations
Clear any animations applied to this Actor.
Public methodStatic memberCreate
Creates a new Actor.
Public methodDispose
Performs tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from Disposable.)
Protected methodDispose(Boolean)
Removes this instance from the pool.
(Overrides IdentifiedPoolTInstanceDispose(Boolean).)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Finalizes an instance of the Disposable class.
(Inherited from Disposable.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodInitialize
An overloadable point for initialization logic which requires the Id to be set.
(Inherited from IdentifiedPoolTInstance.)
Public methodIsStreamedIn
Determines whether this Actor is streamed in for the specified player.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOnPlayerGiveDamage
Raises the [E:PlayerGiveDamage] event.
Public methodOnStreamIn
Raises the [E:StreamIn] event.
Public methodOnStreamOut
Raises the [E:StreamOut] event.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventDisposed
Occurs when this isntance has been disposed.
(Inherited from Disposable.)
Public eventPlayerGiveDamage
Occurs when a player harms this Actor.
Public eventStreamIn
Occurs when this Actor is being streamed in for a player.
Public eventStreamOut
Occurs when this Actor is being streamed out for a player.
Top
Fields
  NameDescription
Public fieldStatic memberInvalidId
Identifier indicating the handle is invalid.
Public fieldStatic memberMax
Maximum number of actors which can exist.
Top
See Also