Show / Hide Table of Contents

    Interface ICreature

    Interface for all creatures in the game.

    Inherited Members
    IThing.LocationChanged
    IThing.TypeId
    IThing.UniqueId
    IThing.CanBeMoved
    IThing.TrackedEvents
    IThing.DescribeForLogger()
    IThing.StartTrackingEvent(IEvent, String)
    IThing.StopTrackingEvent(IEvent, String)
    IContainedThing.ParentContainer
    System.IEquatable<Fibula.Common.Contracts.Abstractions.IThing>.Equals(Fibula.Common.Contracts.Abstractions.IThing)
    ICloneableThing<IThing>.Clone()
    IThingContainer.FindThingAtIndex(Byte)
    IThingContainer.AddContent(IThingFactory, IThing, Byte)
    IThingContainer.RemoveContent(IThingFactory, IThing, Byte, Byte)
    IThingContainer.ReplaceContent(IThingFactory, IThing, IThing, Byte, Byte)
    ILocatable.Location
    ILocatable.CarryLocation
    System.IEquatable<Fibula.Creatures.Contracts.Abstractions.ICreature>.Equals(Fibula.Creatures.Contracts.Abstractions.ICreature)
    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 Source

    Article

    Gets the article in the name of the creature.

    Declaration
    string Article { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    BloodType

    Gets the creature's blood type.

    Declaration
    BloodType BloodType { get; }
    Property Value
    Type Description
    BloodType
    | Improve this Doc View Source

    CanWalk

    Gets a value indicating whether this creature can walk.

    Declaration
    bool CanWalk { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    CorpseTypeId

    Gets the creature's corpse type id.

    Declaration
    ushort CorpseTypeId { get; }
    Property Value
    Type Description
    System.UInt16
    | Improve this Doc View Source

    Direction

    Gets or sets the creature's facing direction.

    Declaration
    Direction Direction { get; set; }
    Property Value
    Type Description
    Direction
    | Improve this Doc View Source

    EmittedLightColor

    Gets this creature's emitted light color.

    Declaration
    byte EmittedLightColor { get; }
    Property Value
    Type Description
    System.Byte
    | Improve this Doc View Source

    EmittedLightLevel

    Gets this creature's emitted light level.

    Declaration
    byte EmittedLightLevel { get; }
    Property Value
    Type Description
    System.Byte
    | Improve this Doc View Source

    Flags

    Gets this creature's flags.

    Declaration
    uint Flags { get; }
    Property Value
    Type Description
    System.UInt32
    | Improve this Doc View Source

    Id

    Gets the creature's in-game id.

    Declaration
    uint Id { get; }
    Property Value
    Type Description
    System.UInt32
    | Improve this Doc View Source

    Inventory

    Gets the inventory for the entity.

    Declaration
    IInventory Inventory { get; }
    Property Value
    Type Description
    IInventory
    | Improve this Doc View Source

    IsDead

    Gets a value indicating whether the creature is dead.

    Declaration
    bool IsDead { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    LastMovementCostModifier

    Gets or sets the creature's last move modifier.

    Declaration
    decimal LastMovementCostModifier { get; set; }
    Property Value
    Type Description
    System.Decimal
    | Improve this Doc View Source

    Name

    Gets the name of the creature.

    Declaration
    string Name { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Outfit

    Gets or sets the creature's outfit.

    Declaration
    Outfit Outfit { get; set; }
    Property Value
    Type Description
    Outfit
    | Improve this Doc View Source

    Speed

    Gets this creature's movement speed.

    Declaration
    ushort Speed { get; }
    Property Value
    Type Description
    System.UInt16
    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    WalkPlan

    Gets or sets this creature's walk plan.

    Declaration
    WalkPlan WalkPlan { get; set; }
    Property Value
    Type Description
    WalkPlan

    Methods

    | Improve this Doc View Source

    CanSee(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.

    | Improve this Doc View Source

    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 Source

    StatChanged

    Event triggered when this creature's stat has changed.

    Declaration
    event OnCreatureStatChanged StatChanged
    Event Type
    Type Description
    OnCreatureStatChanged

    Extension Methods

    ContainerExtensions.GetParentContainerHierarchy(IContainedThing, Boolean)
    ContainerExtensions.GetParentContainerHierarchy(IThingContainer, Boolean)
    CreatureExtensions.CalculateStepDuration(ICreature, ITile)
    CreatureExtensions.TryRetrieveTrackedOperation(ICreature, String, out IOperation)
    CreatureExtensions.LocationInFront(ICreature)
    CreatureExtensions.RandomAdjacentDirection(ICreature, Boolean, Random)
    CreatureExtensions.RandomAdjacentLocation(ICreature, Boolean, Random)
    ThingExtensions.RemainingExhaustionTime(IThing, ExhaustionType, DateTimeOffset)
    ThingExtensions.HasCondition(IThing, ConditionType)
    ThingExtensions.IsExhausted(IThing, ExhaustionType)
    ObjectExtensions.YieldSingleItem<T>(T)
    ObjectExtensions.GetPropertyValue(Object, String)
    Validate.ThrowIfNull(Object, String)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2018-2020 | The Fibula Project
    Generated using DocFX | Jose L. Nuñez de Caceres et al.