C# Class Aura.Channel.World.Entities.Entity

An entity is any being or object that can be sent in Entity(Dis)Appears.
Show file Open project: aura-project/aura Class Usage Examples

Public Methods

Method Description
Disappear ( ) : void

Called when entity is removed from world, due to DisappearTime.

GetLocation ( ) : Location

Returns entity's current location.

GetPosition ( ) : Position

Entity's current position

HasTag ( string tag ) : bool

Returns true if entity's data has the tag.

Is ( DataType type ) : bool

Returns true if entity is of the given data type.

Method Details

Disappear() public method

Called when entity is removed from world, due to DisappearTime.
public Disappear ( ) : void
return void

GetLocation() public method

Returns entity's current location.
public GetLocation ( ) : Location
return Location

GetPosition() public abstract method

Entity's current position
public abstract GetPosition ( ) : Position
return Position

HasTag() public abstract method

Returns true if entity's data has the tag.
public abstract HasTag ( string tag ) : bool
tag string
return bool

Is() public method

Returns true if entity is of the given data type.
public Is ( DataType type ) : bool
type DataType
return bool