Files
systemrevivalserver/Game/Shared/IPlayerTarget.cs
T
2026-02-17 11:18:55 -05:00

44 lines
1.1 KiB
C#

using GameServer.Dungeon;
namespace GameServer.Shared;
/// <summary>
/// Interface for player combat state, implemented by both dungeon PlayerInstance
/// and world WorldPlayerCombatState. Provides the combat-relevant surface that
/// MobAI and CombatCalculator need.
/// </summary>
public interface IPlayerTarget
{
ulong CharacterId { get; }
string CharacterName { get; }
// Position
float X { get; }
float Y { get; }
// Vitals
float Health { get; set; }
float MaxHealth { get; }
bool IsAlive { get; set; }
bool IsInvulnerable { get; }
// Combat stats
int Strength { get; }
int Intelligence { get; }
int Endurance { get; }
int Dexterity { get; }
int Armor { get; }
string WeaponDamageTypeKey { get; }
Dictionary<string, float> Resistances { get; }
// Status effects
List<PlayerStatusEffect> StatusEffects { get; }
bool IsStunned { get; }
bool IsRooted { get; }
bool IsFeared { get; }
// Combat tracking
bool IsInCombat { get; set; }
long LastCombatTick { get; set; }
}