C# Class Server.Mobiles.PlayerMobile

Inheritance: Mobile, IHonorTarget
Mostra file Open project: Grimoric/RunUO.T2A Class Usage Examples

Private Properties

Property Type Description
AddArmorRating void
CheckBlock bool
CheckContentForTrade int
CreateHair void
DeltaEnemies void
Disconnect void
EventSink_Connected void
EventSink_Disconnected void
FindItems_Callback bool
InternalChangeHair void
InternalRestoreHair void
OnLogin void
OnLogout void
RevertHair void
SendToStaffMessage void
ValidateEquipment_Sandbox void

Public Methods

Method Description
AddBuff ( BuffInfo b ) : void
Animate ( int action, int frameCount, int repeatCount, bool forward, bool repeat, int delay ) : void
AntiMacroCheck ( Skill skill, object obj ) : bool
ApplyPoison ( Mobile from, Poison poison ) : ApplyPoisonResult
CanBeHarmful ( Mobile target, bool message, bool ignoreOurBlessedness ) : bool
CanSee ( Mobile m ) : bool
CheckEquip ( Item item ) : bool
CheckKillDecay ( ) : void
CheckLightLevels ( bool forceResend ) : void
CheckNonlocalDrop ( Mobile from, Item item, Item target ) : bool
CheckShove ( Mobile shoved ) : bool
CheckTrade ( Mobile to, Item item, SecureTradeContainer cont, bool message, bool checkItems, int plusItems, int plusWeight ) : bool
CheckedAnimate ( int action, int frameCount, int repeatCount, bool forward, bool repeat, int delay ) : void
ComputeBaseLightLevels ( int &global, int &personal ) : void
ComputeMovementSpeed ( Direction dir, bool checkTurning ) : TimeSpan
Delta ( MobileDelta flag ) : void
Deserialize ( GenericReader reader ) : void
DisruptiveAction ( ) : void
GetDirection4 ( Point3D from, Point3D to ) : Direction
GetFlag ( PlayerFlag flag ) : bool
GetLogoutDelay ( ) : TimeSpan
GetOldPacketFlags ( ) : int
GetPacketFlags ( ) : int
Initialize ( ) : void
InvalidateMyRunUO ( ) : void
IsHarmfulCriminal ( Mobile target ) : bool
Move ( Direction d ) : bool
MoveToWorld ( Point3D loc, Map map ) : void
MovementThrottle_Callback ( NetState ns ) : bool
MutateSpeech ( List hears, string &text, object &context ) : bool
OnAccessLevelChanged ( AccessLevel oldLevel ) : void
OnAfterDelete ( ) : void
OnBeforeDeath ( ) : bool
OnDamage ( int amount, Mobile from, bool willKill ) : void
OnDeath ( Container c ) : void
OnDelete ( ) : void
OnDoubleClick ( Mobile from ) : void
OnDroppedItemToWorld ( Item item, Point3D location ) : bool
OnFameChange ( int oldValue ) : void
OnGenderChanged ( bool oldFemale ) : void
OnGuildChange ( Server oldGuild ) : void
OnGuildTitleChange ( string oldTitle ) : void
OnItemAdded ( Item item ) : void
OnItemRemoved ( Item item ) : void
OnKarmaChange ( int oldValue ) : void
OnMoveOver ( Mobile m ) : bool
OnNetStateChanged ( ) : void
OnRawStatChange ( StatType stat, int oldValue ) : void
OnSpeech ( SpeechEventArgs e ) : void
OnSubItemAdded ( Item item ) : void
PlayerMobile ( ) : System
PlayerMobile ( Serial s ) : System
RecheckTownProtection ( ) : void
RemoveBuff ( BuffIcon b ) : void
RemoveBuff ( BuffInfo b ) : void
ResendBuffs ( ) : void
ResetKillTime ( ) : void
Resurrect ( ) : void
RevealingAction ( ) : void
Serialize ( GenericWriter writer ) : void
SetFlag ( PlayerFlag flag, bool value ) : void
SetHairMods ( int hairID, int beardID ) : void
SetLocation ( Point3D loc, bool isTeleport ) : void
SetMountBlock ( BlockMountType type, TimeSpan duration, bool dismount ) : void
ValidateEquipment ( ) : void

Protected Methods

Method Description
OnLocationChange ( Point3D oldLocation ) : void
OnRaceChange ( Race oldRace ) : void

Private Methods

Method Description
AddArmorRating ( double &rating, Item armor ) : void
CheckBlock ( MountBlock block ) : bool
CheckContentForTrade ( Item item ) : int
CreateHair ( bool hair, int id, int hue ) : void
DeltaEnemies ( Type oldType, Type newType ) : void
Disconnect ( object state ) : void
EventSink_Connected ( ConnectedEventArgs e ) : void
EventSink_Disconnected ( DisconnectedEventArgs e ) : void
FindItems_Callback ( Item item ) : bool
InternalChangeHair ( bool hair, int id, int &storeID, int &storeHue ) : void
InternalRestoreHair ( bool hair, int &id, int &hue ) : void
OnLogin ( LoginEventArgs e ) : void
OnLogout ( LogoutEventArgs e ) : void
RevertHair ( ) : void
SendToStaffMessage ( Mobile from, string text ) : void
ValidateEquipment_Sandbox ( ) : void

Method Details

AddBuff() public method

public AddBuff ( BuffInfo b ) : void
b BuffInfo
return void

Animate() public method

public Animate ( int action, int frameCount, int repeatCount, bool forward, bool repeat, int delay ) : void
action int
frameCount int
repeatCount int
forward bool
repeat bool
delay int
return void

AntiMacroCheck() public method

public AntiMacroCheck ( Skill skill, object obj ) : bool
skill Skill
obj object
return bool

ApplyPoison() public method

public ApplyPoison ( Mobile from, Poison poison ) : ApplyPoisonResult
from Mobile
poison Poison
return ApplyPoisonResult

CanBeHarmful() public method

public CanBeHarmful ( Mobile target, bool message, bool ignoreOurBlessedness ) : bool
target Mobile
message bool
ignoreOurBlessedness bool
return bool

CanSee() public method

public CanSee ( Mobile m ) : bool
m Mobile
return bool

CheckEquip() public method

public CheckEquip ( Item item ) : bool
item Item
return bool

CheckKillDecay() public method

public CheckKillDecay ( ) : void
return void

CheckLightLevels() public method

public CheckLightLevels ( bool forceResend ) : void
forceResend bool
return void

CheckNonlocalDrop() public method

public CheckNonlocalDrop ( Mobile from, Item item, Item target ) : bool
from Mobile
item Item
target Item
return bool

CheckShove() public method

public CheckShove ( Mobile shoved ) : bool
shoved Mobile
return bool

CheckTrade() public method

public CheckTrade ( Mobile to, Item item, SecureTradeContainer cont, bool message, bool checkItems, int plusItems, int plusWeight ) : bool
to Mobile
item Item
cont SecureTradeContainer
message bool
checkItems bool
plusItems int
plusWeight int
return bool

CheckedAnimate() public method

public CheckedAnimate ( int action, int frameCount, int repeatCount, bool forward, bool repeat, int delay ) : void
action int
frameCount int
repeatCount int
forward bool
repeat bool
delay int
return void

ComputeBaseLightLevels() public method

public ComputeBaseLightLevels ( int &global, int &personal ) : void
global int
personal int
return void

ComputeMovementSpeed() public method

public ComputeMovementSpeed ( Direction dir, bool checkTurning ) : TimeSpan
dir Direction
checkTurning bool
return TimeSpan

Delta() public method

public Delta ( MobileDelta flag ) : void
flag MobileDelta
return void

Deserialize() public method

public Deserialize ( GenericReader reader ) : void
reader GenericReader
return void

DisruptiveAction() public method

public DisruptiveAction ( ) : void
return void

GetDirection4() public static method

public static GetDirection4 ( Point3D from, Point3D to ) : Direction
from Point3D
to Point3D
return Direction

GetFlag() public method

public GetFlag ( PlayerFlag flag ) : bool
flag PlayerFlag
return bool

GetLogoutDelay() public method

public GetLogoutDelay ( ) : TimeSpan
return TimeSpan

GetOldPacketFlags() public method

public GetOldPacketFlags ( ) : int
return int

GetPacketFlags() public method

public GetPacketFlags ( ) : int
return int

Initialize() public static method

public static Initialize ( ) : void
return void

InvalidateMyRunUO() public method

public InvalidateMyRunUO ( ) : void
return void

IsHarmfulCriminal() public method

public IsHarmfulCriminal ( Mobile target ) : bool
target Mobile
return bool

Move() public method

public Move ( Direction d ) : bool
d Direction
return bool

MoveToWorld() public method

public MoveToWorld ( Point3D loc, Map map ) : void
loc Point3D
map Map
return void

MovementThrottle_Callback() public static method

public static MovementThrottle_Callback ( NetState ns ) : bool
ns NetState
return bool

MutateSpeech() public method

public MutateSpeech ( List hears, string &text, object &context ) : bool
hears List
text string
context object
return bool

OnAccessLevelChanged() public method

public OnAccessLevelChanged ( AccessLevel oldLevel ) : void
oldLevel AccessLevel
return void

OnAfterDelete() public method

public OnAfterDelete ( ) : void
return void

OnBeforeDeath() public method

public OnBeforeDeath ( ) : bool
return bool

OnDamage() public method

public OnDamage ( int amount, Mobile from, bool willKill ) : void
amount int
from Mobile
willKill bool
return void

OnDeath() public method

public OnDeath ( Container c ) : void
c Container
return void

OnDelete() public method

public OnDelete ( ) : void
return void

OnDoubleClick() public method

public OnDoubleClick ( Mobile from ) : void
from Mobile
return void

OnDroppedItemToWorld() public method

public OnDroppedItemToWorld ( Item item, Point3D location ) : bool
item Item
location Point3D
return bool

OnFameChange() public method

public OnFameChange ( int oldValue ) : void
oldValue int
return void

OnGenderChanged() public method

public OnGenderChanged ( bool oldFemale ) : void
oldFemale bool
return void

OnGuildChange() public method

public OnGuildChange ( Server oldGuild ) : void
oldGuild Server
return void

OnGuildTitleChange() public method

public OnGuildTitleChange ( string oldTitle ) : void
oldTitle string
return void

OnItemAdded() public method

public OnItemAdded ( Item item ) : void
item Item
return void

OnItemRemoved() public method

public OnItemRemoved ( Item item ) : void
item Item
return void

OnKarmaChange() public method

public OnKarmaChange ( int oldValue ) : void
oldValue int
return void

OnLocationChange() protected method

protected OnLocationChange ( Point3D oldLocation ) : void
oldLocation Point3D
return void

OnMoveOver() public method

public OnMoveOver ( Mobile m ) : bool
m Mobile
return bool

OnNetStateChanged() public method

public OnNetStateChanged ( ) : void
return void

OnRaceChange() protected method

protected OnRaceChange ( Race oldRace ) : void
oldRace Race
return void

OnRawStatChange() public method

public OnRawStatChange ( StatType stat, int oldValue ) : void
stat StatType
oldValue int
return void

OnSpeech() public method

public OnSpeech ( SpeechEventArgs e ) : void
e SpeechEventArgs
return void

OnSubItemAdded() public method

public OnSubItemAdded ( Item item ) : void
item Item
return void

PlayerMobile() public method

public PlayerMobile ( ) : System
return System

PlayerMobile() public method

public PlayerMobile ( Serial s ) : System
s Serial
return System

RecheckTownProtection() public method

public RecheckTownProtection ( ) : void
return void

RemoveBuff() public method

public RemoveBuff ( BuffIcon b ) : void
b BuffIcon
return void

RemoveBuff() public method

public RemoveBuff ( BuffInfo b ) : void
b BuffInfo
return void

ResendBuffs() public method

public ResendBuffs ( ) : void
return void

ResetKillTime() public method

public ResetKillTime ( ) : void
return void

Resurrect() public method

public Resurrect ( ) : void
return void

RevealingAction() public method

public RevealingAction ( ) : void
return void

Serialize() public method

public Serialize ( GenericWriter writer ) : void
writer GenericWriter
return void

SetFlag() public method

public SetFlag ( PlayerFlag flag, bool value ) : void
flag PlayerFlag
value bool
return void

SetHairMods() public method

public SetHairMods ( int hairID, int beardID ) : void
hairID int
beardID int
return void

SetLocation() public method

public SetLocation ( Point3D loc, bool isTeleport ) : void
loc Point3D
isTeleport bool
return void

SetMountBlock() public method

public SetMountBlock ( BlockMountType type, TimeSpan duration, bool dismount ) : void
type BlockMountType
duration TimeSpan
dismount bool
return void

ValidateEquipment() public method

public ValidateEquipment ( ) : void
return void