C# Class Server.Spells.SpellHelper

Afficher le fichier Open project: Grimoric/RunUO.T2A Class Usage Examples

Méthodes publiques

Méthode Description
AddStatBonus ( Mobile caster, Mobile target, StatType type ) : bool
AddStatBonus ( Mobile target, StatType type, int bonus, System.TimeSpan duration ) : bool
AddStatCurse ( Mobile caster, Mobile target, StatType type ) : bool
AddStatCurse ( Mobile target, StatType type, int curse, System.TimeSpan duration ) : bool
AddStatOffset ( Mobile m, StatType type, int offset ) : bool
AdjustField ( Point3D &p, Map map, int height, bool mobsBlock ) : bool
CanRevealCaster ( Mobile m ) : bool
CheckCombat ( Mobile m ) : bool
CheckMulti ( Point3D p, Map map ) : bool
CheckMulti ( Point3D p, Map map, bool houses ) : bool
CheckMulti ( Point3D p, Map map, bool houses, int housingrange ) : bool
CheckReflect ( int circle, Mobile caster, Mobile &target ) : void
CheckTown ( IPoint3D loc, Mobile caster ) : bool
CheckTown ( Point3D loc, Mobile caster ) : bool
CheckTravel ( Map map, Point3D loc, TravelCheckType type ) : bool
CheckTravel ( Mobile caster, Map map, Point3D loc, TravelCheckType type ) : bool
CheckTravel ( Mobile caster, TravelCheckType type ) : bool
Damage ( Spell spell, Mobile target, double damage, int phys, int fire, int cold, int pois, int nrgy ) : void
Damage ( Spell spell, System.TimeSpan delay, Mobile target, Mobile from, double damage ) : void
Damage ( Spell spell, System.TimeSpan delay, Mobile target, Mobile from, double damage, int phys, int fire, int cold, int pois, int nrgy, DFAlgorithm dfa ) : void
Damage ( System.TimeSpan delay, Mobile target, Mobile from, double damage ) : void
Damage ( System.TimeSpan delay, Mobile target, Mobile from, double damage, int phys, int fire, int cold, int pois, int nrgy ) : void
Damage ( System.TimeSpan delay, Mobile target, Mobile from, double damage, int phys, int fire, int cold, int pois, int nrgy, DFAlgorithm dfa ) : void
Damage ( System.TimeSpan delay, Mobile target, double damage ) : void
FindValidSpawnLocation ( Map map, Point3D &p, bool surroundingsOnly ) : bool
GetDamageDelayForSpell ( Spell sp ) : System.TimeSpan
GetDuration ( Mobile caster ) : System.TimeSpan
GetGuildFor ( Mobile m ) : Guild
GetOffset ( Mobile caster ) : int
GetOffsetScalar ( Mobile caster, Mobile target, bool curse ) : double
GetSurfaceTop ( IPoint3D &p ) : void
Heal ( int amount, Mobile target, Mobile from ) : void
Heal ( int amount, Mobile target, Mobile from, bool message ) : void
IsAnyT2A ( Map map, Point3D loc ) : bool
IsFeluccaDungeon ( Map map, Point3D loc ) : bool
IsFeluccaT2A ( Map map, Point3D loc ) : bool
IsFeluccaWind ( Map map, Point3D loc ) : bool
IsHeartwood ( Map map, Point3D loc ) : bool
IsInvalid ( Map map, Point3D loc ) : bool
IsKhaldun ( Map map, Point3D loc ) : bool
IsSafeZone ( Map map, Point3D loc ) : bool
IsTown ( IPoint3D loc, Mobile caster ) : bool
IsTown ( Point3D loc, Mobile caster ) : bool
IsWindLoc ( Point3D loc ) : bool
SendInvalidMessage ( Mobile caster, TravelCheckType type ) : void
Summon ( BaseCreature creature, Mobile caster, int sound, System.TimeSpan duration, bool scaleDuration, bool scaleStats ) : void
Turn ( Mobile from, object to ) : void
ValidIndirectTarget ( Mobile from, Mobile to ) : bool

Method Details

AddStatBonus() public static méthode

public static AddStatBonus ( Mobile caster, Mobile target, StatType type ) : bool
caster Mobile
target Mobile
type StatType
Résultat bool

AddStatBonus() public static méthode

public static AddStatBonus ( Mobile target, StatType type, int bonus, System.TimeSpan duration ) : bool
target Mobile
type StatType
bonus int
duration System.TimeSpan
Résultat bool

AddStatCurse() public static méthode

public static AddStatCurse ( Mobile caster, Mobile target, StatType type ) : bool
caster Mobile
target Mobile
type StatType
Résultat bool

AddStatCurse() public static méthode

public static AddStatCurse ( Mobile target, StatType type, int curse, System.TimeSpan duration ) : bool
target Mobile
type StatType
curse int
duration System.TimeSpan
Résultat bool

AddStatOffset() public static méthode

public static AddStatOffset ( Mobile m, StatType type, int offset ) : bool
m Mobile
type StatType
offset int
Résultat bool

AdjustField() public static méthode

public static AdjustField ( Point3D &p, Map map, int height, bool mobsBlock ) : bool
p Point3D
map Map
height int
mobsBlock bool
Résultat bool

CanRevealCaster() public static méthode

public static CanRevealCaster ( Mobile m ) : bool
m Mobile
Résultat bool

CheckCombat() public static méthode

public static CheckCombat ( Mobile m ) : bool
m Mobile
Résultat bool

CheckMulti() public static méthode

public static CheckMulti ( Point3D p, Map map ) : bool
p Point3D
map Map
Résultat bool

CheckMulti() public static méthode

public static CheckMulti ( Point3D p, Map map, bool houses ) : bool
p Point3D
map Map
houses bool
Résultat bool

CheckMulti() public static méthode

public static CheckMulti ( Point3D p, Map map, bool houses, int housingrange ) : bool
p Point3D
map Map
houses bool
housingrange int
Résultat bool

CheckReflect() public static méthode

public static CheckReflect ( int circle, Mobile caster, Mobile &target ) : void
circle int
caster Mobile
target Mobile
Résultat void

CheckTown() public static méthode

public static CheckTown ( IPoint3D loc, Mobile caster ) : bool
loc IPoint3D
caster Mobile
Résultat bool

CheckTown() public static méthode

public static CheckTown ( Point3D loc, Mobile caster ) : bool
loc Point3D
caster Mobile
Résultat bool

CheckTravel() public static méthode

public static CheckTravel ( Map map, Point3D loc, TravelCheckType type ) : bool
map Map
loc Point3D
type TravelCheckType
Résultat bool

CheckTravel() public static méthode

public static CheckTravel ( Mobile caster, Map map, Point3D loc, TravelCheckType type ) : bool
caster Mobile
map Map
loc Point3D
type TravelCheckType
Résultat bool

CheckTravel() public static méthode

public static CheckTravel ( Mobile caster, TravelCheckType type ) : bool
caster Mobile
type TravelCheckType
Résultat bool

Damage() public static méthode

public static Damage ( Spell spell, Mobile target, double damage, int phys, int fire, int cold, int pois, int nrgy ) : void
spell Spell
target Mobile
damage double
phys int
fire int
cold int
pois int
nrgy int
Résultat void

Damage() public static méthode

public static Damage ( Spell spell, System.TimeSpan delay, Mobile target, Mobile from, double damage ) : void
spell Spell
delay System.TimeSpan
target Mobile
from Mobile
damage double
Résultat void

Damage() public static méthode

public static Damage ( Spell spell, System.TimeSpan delay, Mobile target, Mobile from, double damage, int phys, int fire, int cold, int pois, int nrgy, DFAlgorithm dfa ) : void
spell Spell
delay System.TimeSpan
target Mobile
from Mobile
damage double
phys int
fire int
cold int
pois int
nrgy int
dfa DFAlgorithm
Résultat void

Damage() public static méthode

public static Damage ( System.TimeSpan delay, Mobile target, Mobile from, double damage ) : void
delay System.TimeSpan
target Mobile
from Mobile
damage double
Résultat void

Damage() public static méthode

public static Damage ( System.TimeSpan delay, Mobile target, Mobile from, double damage, int phys, int fire, int cold, int pois, int nrgy ) : void
delay System.TimeSpan
target Mobile
from Mobile
damage double
phys int
fire int
cold int
pois int
nrgy int
Résultat void

Damage() public static méthode

public static Damage ( System.TimeSpan delay, Mobile target, Mobile from, double damage, int phys, int fire, int cold, int pois, int nrgy, DFAlgorithm dfa ) : void
delay System.TimeSpan
target Mobile
from Mobile
damage double
phys int
fire int
cold int
pois int
nrgy int
dfa DFAlgorithm
Résultat void

Damage() public static méthode

public static Damage ( System.TimeSpan delay, Mobile target, double damage ) : void
delay System.TimeSpan
target Mobile
damage double
Résultat void

FindValidSpawnLocation() public static méthode

public static FindValidSpawnLocation ( Map map, Point3D &p, bool surroundingsOnly ) : bool
map Map
p Point3D
surroundingsOnly bool
Résultat bool

GetDamageDelayForSpell() public static méthode

public static GetDamageDelayForSpell ( Spell sp ) : System.TimeSpan
sp Spell
Résultat System.TimeSpan

GetDuration() public static méthode

public static GetDuration ( Mobile caster ) : System.TimeSpan
caster Mobile
Résultat System.TimeSpan

GetGuildFor() public static méthode

public static GetGuildFor ( Mobile m ) : Guild
m Mobile
Résultat Server.Guilds.Guild

GetOffset() public static méthode

public static GetOffset ( Mobile caster ) : int
caster Mobile
Résultat int

GetOffsetScalar() public static méthode

public static GetOffsetScalar ( Mobile caster, Mobile target, bool curse ) : double
caster Mobile
target Mobile
curse bool
Résultat double

GetSurfaceTop() public static méthode

public static GetSurfaceTop ( IPoint3D &p ) : void
p IPoint3D
Résultat void

Heal() public static méthode

public static Heal ( int amount, Mobile target, Mobile from ) : void
amount int
target Mobile
from Mobile
Résultat void

Heal() public static méthode

public static Heal ( int amount, Mobile target, Mobile from, bool message ) : void
amount int
target Mobile
from Mobile
message bool
Résultat void

IsAnyT2A() public static méthode

public static IsAnyT2A ( Map map, Point3D loc ) : bool
map Map
loc Point3D
Résultat bool

IsFeluccaDungeon() public static méthode

public static IsFeluccaDungeon ( Map map, Point3D loc ) : bool
map Map
loc Point3D
Résultat bool

IsFeluccaT2A() public static méthode

public static IsFeluccaT2A ( Map map, Point3D loc ) : bool
map Map
loc Point3D
Résultat bool

IsFeluccaWind() public static méthode

public static IsFeluccaWind ( Map map, Point3D loc ) : bool
map Map
loc Point3D
Résultat bool

IsHeartwood() public static méthode

public static IsHeartwood ( Map map, Point3D loc ) : bool
map Map
loc Point3D
Résultat bool

IsInvalid() public static méthode

public static IsInvalid ( Map map, Point3D loc ) : bool
map Map
loc Point3D
Résultat bool

IsKhaldun() public static méthode

public static IsKhaldun ( Map map, Point3D loc ) : bool
map Map
loc Point3D
Résultat bool

IsSafeZone() public static méthode

public static IsSafeZone ( Map map, Point3D loc ) : bool
map Map
loc Point3D
Résultat bool

IsTown() public static méthode

public static IsTown ( IPoint3D loc, Mobile caster ) : bool
loc IPoint3D
caster Mobile
Résultat bool

IsTown() public static méthode

public static IsTown ( Point3D loc, Mobile caster ) : bool
loc Point3D
caster Mobile
Résultat bool

IsWindLoc() public static méthode

public static IsWindLoc ( Point3D loc ) : bool
loc Point3D
Résultat bool

SendInvalidMessage() public static méthode

public static SendInvalidMessage ( Mobile caster, TravelCheckType type ) : void
caster Mobile
type TravelCheckType
Résultat void

Summon() public static méthode

public static Summon ( BaseCreature creature, Mobile caster, int sound, System.TimeSpan duration, bool scaleDuration, bool scaleStats ) : void
creature Server.Mobiles.BaseCreature
caster Mobile
sound int
duration System.TimeSpan
scaleDuration bool
scaleStats bool
Résultat void

Turn() public static méthode

public static Turn ( Mobile from, object to ) : void
from Mobile
to object
Résultat void

ValidIndirectTarget() public static méthode

public static ValidIndirectTarget ( Mobile from, Mobile to ) : bool
from Mobile
to Mobile
Résultat bool