using System.Collections.Concurrent;
using GameServer.Dungeon;
namespace GameServer.Shared;
///
/// Abstraction over the spatial/entity environment that MobAI and combat systems need.
/// Implemented by both DungeonSimulation (dungeons) and WorldZoneSimulation (overworld).
///
public interface ICombatEnvironment
{
// ---- Spatial ----
/// Check if an actor-sized entity can move to the given world-pixel position.
bool CanActorMoveTo(float x, float y);
// ---- Entity lookups ----
/// All alive players in this environment.
IEnumerable GetAlivePlayers();
/// All alive mobs in this environment.
ConcurrentDictionary Mobs { get; }
/// Get a specific player by character ID.
IPlayerTarget? GetPlayer(ulong characterId);
// ---- Mob summoning ----
/// Request spawning a new mob (summoner ability).
void RequestMobSummon(int mobDefinitionId, float x, float y, int tier);
// ---- Context ----
/// The tier/difficulty level of this environment (dungeon tier or world zone level).
int Tier { get; }
/// Current simulation tick.
long CurrentTick { get; }
}