C# Class Server.Items.BaseWeapon

Inheritance: Item, IWeapon, IFactionItem, ICraftable, ISlayer, IDurability, ISetItem
ファイルを表示 Open project: Grimoric/RunUO.T2A Class Usage Examples

Private Properties

Property Type Description
GetNameString string
GetSaveFlag bool
SetSaveFlag void

Public Methods

Method Description
AbsorbDamage ( Mobile attacker, Mobile defender, int damage ) : int
AddBlood ( Mobile attacker, Mobile defender, int damage ) : void
AddNameProperty ( ObjectPropertyList list ) : void
AllowEquipedCast ( Mobile from ) : bool
BaseWeapon ( Serial serial ) : System
BaseWeapon ( int itemID ) : System
BlockEquip ( Mobile m, System.TimeSpan duration ) : void
CanEquip ( Mobile from ) : bool
CheckConflictingLayer ( Mobile m, Item item, Layer layer ) : bool
CheckHit ( Mobile attacker, Mobile defender ) : bool
CheckSlayers ( Mobile attacker, Mobile defender ) : CheckSlayerResult
Deserialize ( GenericReader reader ) : void
GetAttackSkillValue ( Mobile attacker, Mobile defender ) : double
GetDefendSkillValue ( Mobile attacker, Mobile defender ) : double
GetDelay ( Mobile m ) : System.TimeSpan
GetDurabilityBonus ( ) : int
GetHitAttackSound ( Mobile attacker, Mobile defender ) : int
GetHitDefendSound ( Mobile attacker, Mobile defender ) : int
GetMissAttackSound ( Mobile attacker, Mobile defender ) : int
GetMissDefendSound ( Mobile attacker, Mobile defender ) : int
GetProperties ( ObjectPropertyList list ) : void
GetUsedSkill ( Mobile m, bool checkSkillAttrs ) : SkillName
OnAdded ( object parent ) : void
OnAfterDuped ( Item newItem ) : void
OnCraft ( int quality, bool makersMark, Mobile from, CraftSystem craftSystem, Type typeRes, BaseTool tool, CraftItem craftItem, int resHue ) : int
OnEquip ( Mobile from ) : bool
OnHit ( Mobile attacker, Mobile defender ) : void
OnHit ( Mobile attacker, Mobile defender, double damageBonus ) : void
OnMiss ( Mobile attacker, Mobile defender ) : void
OnRemoved ( object parent ) : void
OnSingleClick ( Mobile from ) : void
OnSwing ( Mobile attacker, Mobile defender ) : System.TimeSpan
OnSwing ( Mobile attacker, Mobile defender, double damageBonus ) : System.TimeSpan
PlayHurtAnimation ( Mobile from ) : void
PlaySwingAnimation ( Mobile from ) : void
ScaleDurability ( ) : void
Serialize ( GenericWriter writer ) : void
UnscaleDurability ( ) : void

Private Methods

Method Description
GetNameString ( ) : string
GetSaveFlag ( SaveFlag flags, SaveFlag toGet ) : bool
SetSaveFlag ( SaveFlag &flags, SaveFlag toSet, bool setIf ) : void

Method Details

AbsorbDamage() public method

public AbsorbDamage ( Mobile attacker, Mobile defender, int damage ) : int
attacker Mobile
defender Mobile
damage int
return int

AddBlood() public method

public AddBlood ( Mobile attacker, Mobile defender, int damage ) : void
attacker Mobile
defender Mobile
damage int
return void

AddNameProperty() public method

public AddNameProperty ( ObjectPropertyList list ) : void
list ObjectPropertyList
return void

AllowEquipedCast() public method

public AllowEquipedCast ( Mobile from ) : bool
from Mobile
return bool

BaseWeapon() public method

public BaseWeapon ( Serial serial ) : System
serial Serial
return System

BaseWeapon() public method

public BaseWeapon ( int itemID ) : System
itemID int
return System

BlockEquip() public static method

public static BlockEquip ( Mobile m, System.TimeSpan duration ) : void
m Mobile
duration System.TimeSpan
return void

CanEquip() public method

public CanEquip ( Mobile from ) : bool
from Mobile
return bool

CheckConflictingLayer() public method

public CheckConflictingLayer ( Mobile m, Item item, Layer layer ) : bool
m Mobile
item Item
layer Layer
return bool

CheckHit() public method

public CheckHit ( Mobile attacker, Mobile defender ) : bool
attacker Mobile
defender Mobile
return bool

CheckSlayers() public method

public CheckSlayers ( Mobile attacker, Mobile defender ) : CheckSlayerResult
attacker Mobile
defender Mobile
return CheckSlayerResult

Deserialize() public method

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

GetAttackSkillValue() public method

public GetAttackSkillValue ( Mobile attacker, Mobile defender ) : double
attacker Mobile
defender Mobile
return double

GetDefendSkillValue() public method

public GetDefendSkillValue ( Mobile attacker, Mobile defender ) : double
attacker Mobile
defender Mobile
return double

GetDelay() public method

public GetDelay ( Mobile m ) : System.TimeSpan
m Mobile
return System.TimeSpan

GetDurabilityBonus() public method

public GetDurabilityBonus ( ) : int
return int

GetHitAttackSound() public method

public GetHitAttackSound ( Mobile attacker, Mobile defender ) : int
attacker Mobile
defender Mobile
return int

GetHitDefendSound() public method

public GetHitDefendSound ( Mobile attacker, Mobile defender ) : int
attacker Mobile
defender Mobile
return int

GetMissAttackSound() public method

public GetMissAttackSound ( Mobile attacker, Mobile defender ) : int
attacker Mobile
defender Mobile
return int

GetMissDefendSound() public method

public GetMissDefendSound ( Mobile attacker, Mobile defender ) : int
attacker Mobile
defender Mobile
return int

GetProperties() public method

public GetProperties ( ObjectPropertyList list ) : void
list ObjectPropertyList
return void

GetUsedSkill() public method

public GetUsedSkill ( Mobile m, bool checkSkillAttrs ) : SkillName
m Mobile
checkSkillAttrs bool
return SkillName

OnAdded() public method

public OnAdded ( object parent ) : void
parent object
return void

OnAfterDuped() public method

public OnAfterDuped ( Item newItem ) : void
newItem Item
return void

OnCraft() public method

public OnCraft ( int quality, bool makersMark, Mobile from, CraftSystem craftSystem, Type typeRes, BaseTool tool, CraftItem craftItem, int resHue ) : int
quality int
makersMark bool
from Mobile
craftSystem Server.Engines.Craft.CraftSystem
typeRes System.Type
tool BaseTool
craftItem Server.Engines.Craft.CraftItem
resHue int
return int

OnEquip() public method

public OnEquip ( Mobile from ) : bool
from Mobile
return bool

OnHit() public method

public OnHit ( Mobile attacker, Mobile defender ) : void
attacker Mobile
defender Mobile
return void

OnHit() public method

public OnHit ( Mobile attacker, Mobile defender, double damageBonus ) : void
attacker Mobile
defender Mobile
damageBonus double
return void

OnMiss() public method

public OnMiss ( Mobile attacker, Mobile defender ) : void
attacker Mobile
defender Mobile
return void

OnRemoved() public method

public OnRemoved ( object parent ) : void
parent object
return void

OnSingleClick() public method

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

OnSwing() public method

public OnSwing ( Mobile attacker, Mobile defender ) : System.TimeSpan
attacker Mobile
defender Mobile
return System.TimeSpan

OnSwing() public method

public OnSwing ( Mobile attacker, Mobile defender, double damageBonus ) : System.TimeSpan
attacker Mobile
defender Mobile
damageBonus double
return System.TimeSpan

PlayHurtAnimation() public method

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

PlaySwingAnimation() public method

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

ScaleDurability() public method

public ScaleDurability ( ) : void
return void

Serialize() public method

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

UnscaleDurability() public method

public UnscaleDurability ( ) : void
return void