forked from runuo/runuo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInterfaces.cs
116 lines (99 loc) · 2.72 KB
/
Interfaces.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
/***************************************************************************
* Interfaces.cs
* -------------------
* begin : May 1, 2002
* copyright : (C) The RunUO Software Team
* email : [email protected]
*
* $Id$
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
using System;
using System.Collections.Generic;
using Server.Mobiles;
namespace Server.Mobiles
{
public interface IMount
{
Mobile Rider{ get; set; }
void OnRiderDamaged( int amount, Mobile from, bool willKill );
}
public interface IMountItem
{
IMount Mount{ get; }
}
}
namespace Server
{
public interface IVendor
{
bool OnBuyItems( Mobile from, List<BuyItemResponse> list );
bool OnSellItems( Mobile from, List<SellItemResponse> list );
DateTime LastRestock{ get; set; }
TimeSpan RestockDelay{ get; }
void Restock();
}
public interface IPoint2D
{
int X{ get; }
int Y{ get; }
}
public interface IPoint3D : IPoint2D
{
int Z{ get; }
}
public interface ICarvable
{
void Carve( Mobile from, Item item );
}
public interface IWeapon
{
int MaxRange{ get; }
void OnBeforeSwing( Mobile attacker, Mobile defender );
TimeSpan OnSwing( Mobile attacker, Mobile defender );
void GetStatusDamage( Mobile from, out int min, out int max );
}
public interface IHued
{
int HuedItemID{ get; }
}
public interface ISpell
{
bool IsCasting{ get; }
void OnCasterHurt();
void OnCasterKilled();
void OnConnectionChanged();
bool OnCasterMoving( Direction d );
bool OnCasterEquiping( Item item );
bool OnCasterUsingObject( object o );
bool OnCastInTown( Region r );
}
public interface IParty
{
void OnStamChanged( Mobile m );
void OnManaChanged( Mobile m );
void OnStatsQuery( Mobile beholder, Mobile beheld );
}
public interface ISpawner
{
bool UnlinkOnTaming { get; }
Point3D HomeLocation { get; }
int HomeRange { get; }
void Remove(ISpawnable spawn);
}
public interface ISpawnable : IEntity
{
void OnBeforeSpawn(Point3D location, Map map);
void MoveToWorld(Point3D location, Map map);
void OnAfterSpawn();
ISpawner Spawner { get; set; }
}
}