C# Класс Server.Items.BaseWeapon

Наследование: Item, IWeapon, IFactionItem, ICraftable, ISlayer, IDurability, ISetItem
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
GetNameString string
GetSaveFlag bool
SetSaveFlag void

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
GetNameString ( ) : string
GetSaveFlag ( SaveFlag flags, SaveFlag toGet ) : bool
SetSaveFlag ( SaveFlag &flags, SaveFlag toSet, bool setIf ) : void

Описание методов

AbsorbDamage() публичный Метод

public AbsorbDamage ( Mobile attacker, Mobile defender, int damage ) : int
attacker Mobile
defender Mobile
damage int
Результат int

AddBlood() публичный Метод

public AddBlood ( Mobile attacker, Mobile defender, int damage ) : void
attacker Mobile
defender Mobile
damage int
Результат void

AddNameProperty() публичный Метод

public AddNameProperty ( ObjectPropertyList list ) : void
list ObjectPropertyList
Результат void

AllowEquipedCast() публичный Метод

public AllowEquipedCast ( Mobile from ) : bool
from Mobile
Результат bool

BaseWeapon() публичный Метод

public BaseWeapon ( Serial serial ) : System
serial Serial
Результат System

BaseWeapon() публичный Метод

public BaseWeapon ( int itemID ) : System
itemID int
Результат System

BlockEquip() публичный статический Метод

public static BlockEquip ( Mobile m, System.TimeSpan duration ) : void
m Mobile
duration System.TimeSpan
Результат void

CanEquip() публичный Метод

public CanEquip ( Mobile from ) : bool
from Mobile
Результат bool

CheckConflictingLayer() публичный Метод

public CheckConflictingLayer ( Mobile m, Item item, Layer layer ) : bool
m Mobile
item Item
layer Layer
Результат bool

CheckHit() публичный Метод

public CheckHit ( Mobile attacker, Mobile defender ) : bool
attacker Mobile
defender Mobile
Результат bool

CheckSlayers() публичный Метод

public CheckSlayers ( Mobile attacker, Mobile defender ) : CheckSlayerResult
attacker Mobile
defender Mobile
Результат CheckSlayerResult

Deserialize() публичный Метод

public Deserialize ( GenericReader reader ) : void
reader GenericReader
Результат void

GetAttackSkillValue() публичный Метод

public GetAttackSkillValue ( Mobile attacker, Mobile defender ) : double
attacker Mobile
defender Mobile
Результат double

GetDefendSkillValue() публичный Метод

public GetDefendSkillValue ( Mobile attacker, Mobile defender ) : double
attacker Mobile
defender Mobile
Результат double

GetDelay() публичный Метод

public GetDelay ( Mobile m ) : System.TimeSpan
m Mobile
Результат System.TimeSpan

GetDurabilityBonus() публичный Метод

public GetDurabilityBonus ( ) : int
Результат int

GetHitAttackSound() публичный Метод

public GetHitAttackSound ( Mobile attacker, Mobile defender ) : int
attacker Mobile
defender Mobile
Результат int

GetHitDefendSound() публичный Метод

public GetHitDefendSound ( Mobile attacker, Mobile defender ) : int
attacker Mobile
defender Mobile
Результат int

GetMissAttackSound() публичный Метод

public GetMissAttackSound ( Mobile attacker, Mobile defender ) : int
attacker Mobile
defender Mobile
Результат int

GetMissDefendSound() публичный Метод

public GetMissDefendSound ( Mobile attacker, Mobile defender ) : int
attacker Mobile
defender Mobile
Результат int

GetProperties() публичный Метод

public GetProperties ( ObjectPropertyList list ) : void
list ObjectPropertyList
Результат void

GetUsedSkill() публичный Метод

public GetUsedSkill ( Mobile m, bool checkSkillAttrs ) : SkillName
m Mobile
checkSkillAttrs bool
Результат SkillName

OnAdded() публичный Метод

public OnAdded ( object parent ) : void
parent object
Результат void

OnAfterDuped() публичный Метод

public OnAfterDuped ( Item newItem ) : void
newItem Item
Результат void

OnCraft() публичный Метод

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
Результат int

OnEquip() публичный Метод

public OnEquip ( Mobile from ) : bool
from Mobile
Результат bool

OnHit() публичный Метод

public OnHit ( Mobile attacker, Mobile defender ) : void
attacker Mobile
defender Mobile
Результат void

OnHit() публичный Метод

public OnHit ( Mobile attacker, Mobile defender, double damageBonus ) : void
attacker Mobile
defender Mobile
damageBonus double
Результат void

OnMiss() публичный Метод

public OnMiss ( Mobile attacker, Mobile defender ) : void
attacker Mobile
defender Mobile
Результат void

OnRemoved() публичный Метод

public OnRemoved ( object parent ) : void
parent object
Результат void

OnSingleClick() публичный Метод

public OnSingleClick ( Mobile from ) : void
from Mobile
Результат void

OnSwing() публичный Метод

public OnSwing ( Mobile attacker, Mobile defender ) : System.TimeSpan
attacker Mobile
defender Mobile
Результат System.TimeSpan

OnSwing() публичный Метод

public OnSwing ( Mobile attacker, Mobile defender, double damageBonus ) : System.TimeSpan
attacker Mobile
defender Mobile
damageBonus double
Результат System.TimeSpan

PlayHurtAnimation() публичный Метод

public PlayHurtAnimation ( Mobile from ) : void
from Mobile
Результат void

PlaySwingAnimation() публичный Метод

public PlaySwingAnimation ( Mobile from ) : void
from Mobile
Результат void

ScaleDurability() публичный Метод

public ScaleDurability ( ) : void
Результат void

Serialize() публичный Метод

public Serialize ( GenericWriter writer ) : void
writer GenericWriter
Результат void

UnscaleDurability() публичный Метод

public UnscaleDurability ( ) : void
Результат void