Interface ICreatureThatSensesOthers
Interface for any ICreature in the game that can sense others.
Inherited Members
System.IEquatable<Fibula.Common.Contracts.Abstractions.IThing>.Equals(Fibula.Common.Contracts.Abstractions.IThing)
System.IEquatable<Fibula.Creatures.Contracts.Abstractions.ICreature>.Equals(Fibula.Creatures.Contracts.Abstractions.ICreature)
Namespace: Fibula.Mechanics.Contracts.Abstractions
Assembly: Fibula.Mechanics.Contracts.dll
Syntax
public interface ICreatureThatSensesOthers : ICreature, IThing, IContainedThing, IEquatable<IThing>, ICloneableThing<IThing>, IThingContainer, ILocatable, IEquatable<ICreature>
Properties
| Improve this Doc View SourceTrackedCreatures
Gets the creatures who are sensed by this creature.
Declaration
IEnumerable<ICreature> TrackedCreatures { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ICreature> |
Methods
| Improve this Doc View SourceStartSensingCreature(ICreature)
Flags a creature as being sensed.
Declaration
void StartSensingCreature(ICreature creature)
Parameters
Type | Name | Description |
---|---|---|
ICreature | creature | The creature which is sensed. |
StopSensingCreature(ICreature)
Flags a creature as no longed being sensed.
Declaration
void StopSensingCreature(ICreature creature)
Parameters
Type | Name | Description |
---|---|---|
ICreature | creature | The creature that is lost. |
Events
| Improve this Doc View SourceCreatureLost
Event called when this creature loses track of a sensed creature.
Declaration
event OnCreatureLost CreatureLost
Event Type
Type | Description |
---|---|
OnCreatureLost |
CreatureSeen
Event called when this creature sees another.
Declaration
event OnCreatureSeen CreatureSeen
Event Type
Type | Description |
---|---|
OnCreatureSeen |
CreatureSensed
Event called when this creature senses another.
Declaration
event OnCreatureSensed CreatureSensed
Event Type
Type | Description |
---|---|
OnCreatureSensed |