// // LivingEntity.cs // // Copyright (c) František Boháček. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using NosSmooth.Game.Data.Info; using NosSmooth.Packets.Enums; namespace NosSmooth.Game.Data.Entities; /// /// Represents any nostale living entity such as monster, npc, player. /// public interface ILivingEntity : IEntity { /// /// Gets the speed of the entity. May be null if unknown. /// public int? Speed { get; set; } /// /// Gets or sets whether the player is invisible. /// public bool? IsInvisible { get; set; } /// /// Gets the level of the entity. May be null if unknown. /// public ushort? Level { get; set; } /// /// Gets the direction the entity is looking. May be null if unknown. /// public byte? Direction { get; set; } /// /// Gets the percentage of the health points of the entity. May be null if unknown. /// public Health? Hp { get; set; } /// /// Gets the percentage of the mana points of the entity. May be null if unknown. /// public Health? Mp { get; set; } /// /// Gets the faction of the entity. May be null if unknown. /// public FactionType? Faction { get; set; } /// /// Gets the size of the entity. /// public short Size { get; set; } /// /// Gets the VNums of the effects the entity has. /// public IReadOnlyList? EffectsVNums { get; set; } /// /// Gets the name of the entity. May be null if unknown. /// public string? Name { get; set; } /// /// Gets or sets whether the entity is sitting. /// public bool IsSitting { get; set; } /// /// Gets or sets whether the entity cannot move. /// public bool CantMove { get; set; } /// /// Gets or sets whether the entity cannot attack. /// public bool CantAttack { get; set; } }