C# Class Server.Items.BaseWeapon

Inheritance: Item, IWeapon, IFactionItem, ICraftable, ISlayer, IDurability, ISetItem
Afficher le fichier Open project: Grimoric/RunUO.T2A Class Usage Examples

Private Properties

Свойство Type Description
GetNameString string
GetSaveFlag bool
SetSaveFlag void

Méthodes publiques

Méthode 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

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

Method Details

AbsorbDamage() public méthode

public AbsorbDamage ( Mobile attacker, Mobile defender, int damage ) : int
attacker Mobile
defender Mobile
damage int
Résultat int

AddBlood() public méthode

public AddBlood ( Mobile attacker, Mobile defender, int damage ) : void
attacker Mobile
defender Mobile
damage int
Résultat void

AddNameProperty() public méthode

public AddNameProperty ( ObjectPropertyList list ) : void
list ObjectPropertyList
Résultat void

AllowEquipedCast() public méthode

public AllowEquipedCast ( Mobile from ) : bool
from Mobile
Résultat bool

BaseWeapon() public méthode

public BaseWeapon ( Serial serial ) : System
serial Serial
Résultat System

BaseWeapon() public méthode

public BaseWeapon ( int itemID ) : System
itemID int
Résultat System

BlockEquip() public static méthode

public static BlockEquip ( Mobile m, System.TimeSpan duration ) : void
m Mobile
duration System.TimeSpan
Résultat void

CanEquip() public méthode

public CanEquip ( Mobile from ) : bool
from Mobile
Résultat bool

CheckConflictingLayer() public méthode

public CheckConflictingLayer ( Mobile m, Item item, Layer layer ) : bool
m Mobile
item Item
layer Layer
Résultat bool

CheckHit() public méthode

public CheckHit ( Mobile attacker, Mobile defender ) : bool
attacker Mobile
defender Mobile
Résultat bool

CheckSlayers() public méthode

public CheckSlayers ( Mobile attacker, Mobile defender ) : CheckSlayerResult
attacker Mobile
defender Mobile
Résultat CheckSlayerResult

Deserialize() public méthode

public Deserialize ( GenericReader reader ) : void
reader GenericReader
Résultat void

GetAttackSkillValue() public méthode

public GetAttackSkillValue ( Mobile attacker, Mobile defender ) : double
attacker Mobile
defender Mobile
Résultat double

GetDefendSkillValue() public méthode

public GetDefendSkillValue ( Mobile attacker, Mobile defender ) : double
attacker Mobile
defender Mobile
Résultat double

GetDelay() public méthode

public GetDelay ( Mobile m ) : System.TimeSpan
m Mobile
Résultat System.TimeSpan

GetDurabilityBonus() public méthode

public GetDurabilityBonus ( ) : int
Résultat int

GetHitAttackSound() public méthode

public GetHitAttackSound ( Mobile attacker, Mobile defender ) : int
attacker Mobile
defender Mobile
Résultat int

GetHitDefendSound() public méthode

public GetHitDefendSound ( Mobile attacker, Mobile defender ) : int
attacker Mobile
defender Mobile
Résultat int

GetMissAttackSound() public méthode

public GetMissAttackSound ( Mobile attacker, Mobile defender ) : int
attacker Mobile
defender Mobile
Résultat int

GetMissDefendSound() public méthode

public GetMissDefendSound ( Mobile attacker, Mobile defender ) : int
attacker Mobile
defender Mobile
Résultat int

GetProperties() public méthode

public GetProperties ( ObjectPropertyList list ) : void
list ObjectPropertyList
Résultat void

GetUsedSkill() public méthode

public GetUsedSkill ( Mobile m, bool checkSkillAttrs ) : SkillName
m Mobile
checkSkillAttrs bool
Résultat SkillName

OnAdded() public méthode

public OnAdded ( object parent ) : void
parent object
Résultat void

OnAfterDuped() public méthode

public OnAfterDuped ( Item newItem ) : void
newItem Item
Résultat void

OnCraft() public méthode

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
Résultat int

OnEquip() public méthode

public OnEquip ( Mobile from ) : bool
from Mobile
Résultat bool

OnHit() public méthode

public OnHit ( Mobile attacker, Mobile defender ) : void
attacker Mobile
defender Mobile
Résultat void

OnHit() public méthode

public OnHit ( Mobile attacker, Mobile defender, double damageBonus ) : void
attacker Mobile
defender Mobile
damageBonus double
Résultat void

OnMiss() public méthode

public OnMiss ( Mobile attacker, Mobile defender ) : void
attacker Mobile
defender Mobile
Résultat void

OnRemoved() public méthode

public OnRemoved ( object parent ) : void
parent object
Résultat void

OnSingleClick() public méthode

public OnSingleClick ( Mobile from ) : void
from Mobile
Résultat void

OnSwing() public méthode

public OnSwing ( Mobile attacker, Mobile defender ) : System.TimeSpan
attacker Mobile
defender Mobile
Résultat System.TimeSpan

OnSwing() public méthode

public OnSwing ( Mobile attacker, Mobile defender, double damageBonus ) : System.TimeSpan
attacker Mobile
defender Mobile
damageBonus double
Résultat System.TimeSpan

PlayHurtAnimation() public méthode

public PlayHurtAnimation ( Mobile from ) : void
from Mobile
Résultat void

PlaySwingAnimation() public méthode

public PlaySwingAnimation ( Mobile from ) : void
from Mobile
Résultat void

ScaleDurability() public méthode

public ScaleDurability ( ) : void
Résultat void

Serialize() public méthode

public Serialize ( GenericWriter writer ) : void
writer GenericWriter
Résultat void

UnscaleDurability() public méthode

public UnscaleDurability ( ) : void
Résultat void