Interface ICreature
Interface for all creatures in the game.
Inherited Members
Namespace: Fibula.Creatures.Contracts.Abstractions
Assembly: Fibula.Creatures.Contracts.dll
Syntax
public interface ICreature : IThing, IContainedThing, IEquatable<IThing>, ICloneableThing<IThing>, IThingContainer, ILocatable, IEquatable<ICreature>
Properties
| Improve this Doc View SourceArticle
Gets the article in the name of the creature.
Declaration
string Article { get; }
Property Value
Type | Description |
---|---|
System.String |
BloodType
Gets the creature's blood type.
Declaration
BloodType BloodType { get; }
Property Value
Type | Description |
---|---|
BloodType |
CanWalk
Gets a value indicating whether this creature can walk.
Declaration
bool CanWalk { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
CorpseTypeId
Gets the creature's corpse type id.
Declaration
ushort CorpseTypeId { get; }
Property Value
Type | Description |
---|---|
System.UInt16 |
Direction
Gets or sets the creature's facing direction.
Declaration
Direction Direction { get; set; }
Property Value
Type | Description |
---|---|
Direction |
EmittedLightColor
Gets this creature's emitted light color.
Declaration
byte EmittedLightColor { get; }
Property Value
Type | Description |
---|---|
System.Byte |
EmittedLightLevel
Gets this creature's emitted light level.
Declaration
byte EmittedLightLevel { get; }
Property Value
Type | Description |
---|---|
System.Byte |
Flags
Gets this creature's flags.
Declaration
uint Flags { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
Id
Gets the creature's in-game id.
Declaration
uint Id { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
Inventory
Gets the inventory for the entity.
Declaration
IInventory Inventory { get; }
Property Value
Type | Description |
---|---|
IInventory |
IsDead
Gets a value indicating whether the creature is dead.
Declaration
bool IsDead { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
LastMovementCostModifier
Gets or sets the creature's last move modifier.
Declaration
decimal LastMovementCostModifier { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal |
Name
Gets the name of the creature.
Declaration
string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Outfit
Gets or sets the creature's outfit.
Declaration
Outfit Outfit { get; set; }
Property Value
Type | Description |
---|---|
Outfit |
Speed
Gets this creature's movement speed.
Declaration
ushort Speed { get; }
Property Value
Type | Description |
---|---|
System.UInt16 |
Stats
Gets the current stats information for the creature.
Declaration
IDictionary<CreatureStat, IStat> Stats { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<CreatureStat, IStat> |
Remarks
The key is a CreatureStat, and the value is an IStat.
WalkPlan
Gets or sets this creature's walk plan.
Declaration
WalkPlan WalkPlan { get; set; }
Property Value
Type | Description |
---|---|
WalkPlan |
Methods
| Improve this Doc View SourceCanSee(Location)
Checks if this creature can see a given location.
Declaration
bool CanSee(Location location)
Parameters
Type | Name | Description |
---|---|---|
Location | location | The location to check against. |
Returns
Type | Description |
---|---|
System.Boolean | True if this creature can see the given location, false otherwise. |
CanSee(ICreature)
Checks if this creature can see a given creature.
Declaration
bool CanSee(ICreature creature)
Parameters
Type | Name | Description |
---|---|---|
ICreature | creature | The creature to check against. |
Returns
Type | Description |
---|---|
System.Boolean | True if this creature can see the given creature, false otherwise. |
Events
| Improve this Doc View SourceStatChanged
Event triggered when this creature's stat has changed.
Declaration
event OnCreatureStatChanged StatChanged
Event Type
Type | Description |
---|---|
OnCreatureStatChanged |