2020-08-25 18:53:35 -07:00
|
|
|
using System;
|
|
|
|
|
|
2022-10-10 21:47:08 -07:00
|
|
|
namespace Server;
|
|
|
|
|
|
|
|
|
|
public interface IPoint2D
|
2020-08-25 18:53:35 -07:00
|
|
|
{
|
2022-10-10 21:47:08 -07:00
|
|
|
int X { get; }
|
|
|
|
|
int Y { get; }
|
|
|
|
|
}
|
2020-08-25 18:53:35 -07:00
|
|
|
|
2022-10-10 21:47:08 -07:00
|
|
|
public interface IPoint3D : IPoint2D
|
|
|
|
|
{
|
|
|
|
|
int Z { get; }
|
|
|
|
|
}
|
2020-08-25 18:53:35 -07:00
|
|
|
|
2022-10-10 21:47:08 -07:00
|
|
|
public interface ICarvable
|
|
|
|
|
{
|
|
|
|
|
void Carve(Mobile from, Item item);
|
|
|
|
|
}
|
2020-08-25 18:53:35 -07:00
|
|
|
|
2022-10-10 21:47:08 -07:00
|
|
|
public interface IWeapon
|
|
|
|
|
{
|
|
|
|
|
int MaxRange { get; }
|
|
|
|
|
void OnBeforeSwing(Mobile attacker, Mobile defender);
|
|
|
|
|
TimeSpan OnSwing(Mobile attacker, Mobile defender, double damageBonus = 1.0);
|
|
|
|
|
void GetStatusDamage(Mobile from, out int min, out int max);
|
|
|
|
|
}
|
2020-08-25 18:53:35 -07:00
|
|
|
|
2022-10-10 21:47:08 -07:00
|
|
|
public interface IHued
|
|
|
|
|
{
|
|
|
|
|
int HuedItemID { get; }
|
|
|
|
|
}
|
2020-08-25 18:53:35 -07:00
|
|
|
|
2022-10-10 21:47:08 -07:00
|
|
|
public interface ISpell
|
|
|
|
|
{
|
2023-04-28 16:12:07 +10:00
|
|
|
bool BlocksMovement { get; }
|
2022-10-10 21:47:08 -07:00
|
|
|
bool IsCasting { get; }
|
|
|
|
|
void OnCasterHurt();
|
|
|
|
|
void OnCasterKilled();
|
|
|
|
|
void OnConnectionChanged();
|
|
|
|
|
bool OnCasterMoving(Direction d);
|
|
|
|
|
bool OnCasterEquipping(Item item);
|
|
|
|
|
bool OnCasterUsingObject(IEntity entity);
|
|
|
|
|
bool OnCastInTown(Region r);
|
|
|
|
|
void FinishSequence();
|
|
|
|
|
}
|
2020-08-25 18:53:35 -07:00
|
|
|
|
2022-10-10 21:47:08 -07:00
|
|
|
public interface IParty
|
|
|
|
|
{
|
|
|
|
|
void OnStamChanged(Mobile m);
|
|
|
|
|
void OnManaChanged(Mobile m);
|
|
|
|
|
void OnStatsQuery(Mobile beholder, Mobile beheld);
|
|
|
|
|
}
|
2020-08-25 18:53:35 -07:00
|
|
|
|
2022-10-10 21:47:08 -07:00
|
|
|
// TODO: Add SpawnMap and change Spawner.Map to use it
|
|
|
|
|
public interface ISpawner : IEntity
|
|
|
|
|
{
|
|
|
|
|
Guid Guid { get; }
|
|
|
|
|
bool UnlinkOnTaming { get; }
|
|
|
|
|
Point3D HomeLocation { get; }
|
|
|
|
|
int HomeRange { get; }
|
|
|
|
|
Region Region { get; }
|
|
|
|
|
bool ReturnOnDeactivate { get; }
|
2024-07-28 14:34:23 -07:00
|
|
|
bool Running { get; }
|
2020-08-25 18:53:35 -07:00
|
|
|
|
2022-10-10 21:47:08 -07:00
|
|
|
void Remove(ISpawnable spawn);
|
|
|
|
|
Point3D GetSpawnPosition(ISpawnable spawned, Map map);
|
|
|
|
|
void Respawn();
|
|
|
|
|
}
|
2020-08-25 18:53:35 -07:00
|
|
|
|
2022-10-10 21:47:08 -07:00
|
|
|
public interface ISpawnable : IEntity
|
|
|
|
|
{
|
|
|
|
|
ISpawner Spawner { get; set; }
|
|
|
|
|
void OnBeforeSpawn(Point3D location, Map map);
|
|
|
|
|
void OnAfterSpawn();
|
2020-08-25 18:53:35 -07:00
|
|
|
}
|