C# Class Server.Spells.SpellHelper

Show file Open project: Grimoric/RunUO.T2A Class Usage Examples

Public Methods

Method 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 method

public static AddStatBonus ( Mobile caster, Mobile target, StatType type ) : bool
caster Mobile
target Mobile
type StatType
return bool

AddStatBonus() public static method

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

AddStatCurse() public static method

public static AddStatCurse ( Mobile caster, Mobile target, StatType type ) : bool
caster Mobile
target Mobile
type StatType
return bool

AddStatCurse() public static method

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

AddStatOffset() public static method

public static AddStatOffset ( Mobile m, StatType type, int offset ) : bool
m Mobile
type StatType
offset int
return bool

AdjustField() public static method

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

CanRevealCaster() public static method

public static CanRevealCaster ( Mobile m ) : bool
m Mobile
return bool

CheckCombat() public static method

public static CheckCombat ( Mobile m ) : bool
m Mobile
return bool

CheckMulti() public static method

public static CheckMulti ( Point3D p, Map map ) : bool
p Point3D
map Map
return bool

CheckMulti() public static method

public static CheckMulti ( Point3D p, Map map, bool houses ) : bool
p Point3D
map Map
houses bool
return bool

CheckMulti() public static method

public static CheckMulti ( Point3D p, Map map, bool houses, int housingrange ) : bool
p Point3D
map Map
houses bool
housingrange int
return bool

CheckReflect() public static method

public static CheckReflect ( int circle, Mobile caster, Mobile &target ) : void
circle int
caster Mobile
target Mobile
return void

CheckTown() public static method

public static CheckTown ( IPoint3D loc, Mobile caster ) : bool
loc IPoint3D
caster Mobile
return bool

CheckTown() public static method

public static CheckTown ( Point3D loc, Mobile caster ) : bool
loc Point3D
caster Mobile
return bool

CheckTravel() public static method

public static CheckTravel ( Map map, Point3D loc, TravelCheckType type ) : bool
map Map
loc Point3D
type TravelCheckType
return bool

CheckTravel() public static method

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

CheckTravel() public static method

public static CheckTravel ( Mobile caster, TravelCheckType type ) : bool
caster Mobile
type TravelCheckType
return bool

Damage() public static method

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
return void

Damage() public static method

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
return void

Damage() public static method

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
return void

Damage() public static method

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

Damage() public static method

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
return void

Damage() public static method

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
return void

Damage() public static method

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

FindValidSpawnLocation() public static method

public static FindValidSpawnLocation ( Map map, Point3D &p, bool surroundingsOnly ) : bool
map Map
p Point3D
surroundingsOnly bool
return bool

GetDamageDelayForSpell() public static method

public static GetDamageDelayForSpell ( Spell sp ) : System.TimeSpan
sp Spell
return System.TimeSpan

GetDuration() public static method

public static GetDuration ( Mobile caster ) : System.TimeSpan
caster Mobile
return System.TimeSpan

GetGuildFor() public static method

public static GetGuildFor ( Mobile m ) : Guild
m Mobile
return Server.Guilds.Guild

GetOffset() public static method

public static GetOffset ( Mobile caster ) : int
caster Mobile
return int

GetOffsetScalar() public static method

public static GetOffsetScalar ( Mobile caster, Mobile target, bool curse ) : double
caster Mobile
target Mobile
curse bool
return double

GetSurfaceTop() public static method

public static GetSurfaceTop ( IPoint3D &p ) : void
p IPoint3D
return void

Heal() public static method

public static Heal ( int amount, Mobile target, Mobile from ) : void
amount int
target Mobile
from Mobile
return void

Heal() public static method

public static Heal ( int amount, Mobile target, Mobile from, bool message ) : void
amount int
target Mobile
from Mobile
message bool
return void

IsAnyT2A() public static method

public static IsAnyT2A ( Map map, Point3D loc ) : bool
map Map
loc Point3D
return bool

IsFeluccaDungeon() public static method

public static IsFeluccaDungeon ( Map map, Point3D loc ) : bool
map Map
loc Point3D
return bool

IsFeluccaT2A() public static method

public static IsFeluccaT2A ( Map map, Point3D loc ) : bool
map Map
loc Point3D
return bool

IsFeluccaWind() public static method

public static IsFeluccaWind ( Map map, Point3D loc ) : bool
map Map
loc Point3D
return bool

IsHeartwood() public static method

public static IsHeartwood ( Map map, Point3D loc ) : bool
map Map
loc Point3D
return bool

IsInvalid() public static method

public static IsInvalid ( Map map, Point3D loc ) : bool
map Map
loc Point3D
return bool

IsKhaldun() public static method

public static IsKhaldun ( Map map, Point3D loc ) : bool
map Map
loc Point3D
return bool

IsSafeZone() public static method

public static IsSafeZone ( Map map, Point3D loc ) : bool
map Map
loc Point3D
return bool

IsTown() public static method

public static IsTown ( IPoint3D loc, Mobile caster ) : bool
loc IPoint3D
caster Mobile
return bool

IsTown() public static method

public static IsTown ( Point3D loc, Mobile caster ) : bool
loc Point3D
caster Mobile
return bool

IsWindLoc() public static method

public static IsWindLoc ( Point3D loc ) : bool
loc Point3D
return bool

SendInvalidMessage() public static method

public static SendInvalidMessage ( Mobile caster, TravelCheckType type ) : void
caster Mobile
type TravelCheckType
return void

Summon() public static method

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
return void

Turn() public static method

public static Turn ( Mobile from, object to ) : void
from Mobile
to object
return void

ValidIndirectTarget() public static method

public static ValidIndirectTarget ( Mobile from, Mobile to ) : bool
from Mobile
to Mobile
return bool