Class Monster
Class that represents all monsters in the game.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Fibula.Creatures
Assembly: Fibula.Creatures.dll
Syntax
public class Monster : CombatantCreature, ICombatant, ICreatureWithSkills, ICreatureThatSensesOthers, IMonster, ICreature, IThing, IContainedThing, IEquatable<IThing>, IThingContainer, ILocatable, IEquatable<ICreature>
Constructors
| Improve this Doc View SourceMonster(IMonsterTypeEntity, IItemFactory)
Initializes a new instance of the Monster class.
Declaration
public Monster(IMonsterTypeEntity monsterType, IItemFactory itemFactory)
Parameters
Type | Name | Description |
---|---|---|
IMonsterTypeEntity | monsterType | The type of this monster. |
IItemFactory | itemFactory | A reference to the item factory in use, for inventory generation. |
Properties
| Improve this Doc View SourceAutoAttackRange
Gets the range that the auto attack has.
Declaration
public override byte AutoAttackRange { get; }
Property Value
Type | Description |
---|---|
System.Byte |
Overrides
| Improve this Doc View SourceCanBeMoved
Gets a value indicating whether this monster can be moved by others.
Declaration
public override bool CanBeMoved { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceExperience
Gets the experience yielded when this monster dies.
Declaration
public uint Experience { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
Inventory
Gets or sets the inventory for the monster.
Declaration
public override sealed IInventory Inventory { get; protected set; }
Property Value
Type | Description |
---|---|
IInventory |
Overrides
| Improve this Doc View SourceSpeed
Gets or sets the monster speed.
Declaration
public override ushort Speed { get; protected set; }
Property Value
Type | Description |
---|---|
System.UInt16 |
Overrides
| Improve this Doc View SourceType
Gets the type of this monster.
Declaration
public IMonsterTypeEntity Type { get; }
Property Value
Type | Description |
---|---|
IMonsterTypeEntity |
Methods
| Improve this Doc View SourceAddToCombatList(ICombatant)
Starts tracking another ICombatant.
Declaration
public override void AddToCombatList(ICombatant otherCombatant)
Parameters
Type | Name | Description |
---|---|---|
ICombatant | otherCombatant | The other combatant, now in view. |
Overrides
| Improve this Doc View SourceApplyDamageModifiers(ref DamageInfo)
Applies damage modifiers to the damage information provided.
Declaration
protected override void ApplyDamageModifiers(ref DamageInfo damageInfo)
Parameters
Type | Name | Description |
---|---|---|
DamageInfo | damageInfo | The damage information. |
Overrides
| Improve this Doc View SourceRemoveFromCombatList(ICombatant)
Stops tracking another ICombatant.
Declaration
public override void RemoveFromCombatList(ICombatant otherCombatant)
Parameters
Type | Name | Description |
---|---|---|
ICombatant | otherCombatant | The other combatant, now in view. |
Overrides
Implements
System.IEquatable<T>
System.IEquatable<T>