C# Class Server.Items.Spellbook

Inheritance: Item, ICraftable, ISlayer
Show file Open project: brodock/runuo Class Usage Examples

Private Properties

Property Type Description
AllSpells_OnCommand void
AllSpells_OnTarget void
EventSink_CastSpellRequest void
EventSink_OpenSpellbookRequest void
Spellbook System
Spellbook System

Public Methods

Method Description
AllowEquipedCast ( Server.Mobile from ) : bool
AllowSecureTrade ( Server.Mobile from, Server.Mobile to, Server.Mobile newOwner, bool accepted ) : bool
CanEquip ( Server.Mobile from ) : bool
Deserialize ( Server.GenericReader reader ) : void
DisplayTo ( Server.Mobile to ) : void
Find ( Server.Mobile from, int spellID ) : Spellbook
Find ( Server.Mobile from, int spellID, SpellbookType type ) : Spellbook
FindAllSpellbooks ( Server.Mobile from ) : List
FindArcanist ( Server.Mobile from ) : Spellbook
FindEquippedSpellbook ( Server.Mobile from ) : Spellbook
FindNecromancer ( Server.Mobile from ) : Spellbook
FindNinja ( Server.Mobile from ) : Spellbook
FindPaladin ( Server.Mobile from ) : Spellbook
FindRegular ( Server.Mobile from ) : Spellbook
FindSamurai ( Mobile from ) : Spellbook
FindSpellbookInList ( List list, Mobile from, int spellID, SpellbookType type ) : Spellbook
GetProperties ( ObjectPropertyList list ) : void
GetTypeForSpell ( int spellID ) : SpellbookType
HasSpell ( int spellID ) : bool
Initialize ( ) : void
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
OnDoubleClick ( Mobile from ) : void
OnDragDrop ( Mobile from, Item dropped ) : bool
OnRemoved ( object parent ) : void
OnSingleClick ( Mobile from ) : void
Serialize ( GenericWriter writer ) : void
Spellbook ( Serial serial ) : System
Spellbook ( ulong content, int itemID ) : System
ValidateSpellbook ( Spellbook book, int spellID, SpellbookType type ) : bool

Private Methods

Method Description
AllSpells_OnCommand ( CommandEventArgs e ) : void
AllSpells_OnTarget ( Server.Mobile from, object obj ) : void
EventSink_CastSpellRequest ( CastSpellRequestEventArgs e ) : void
EventSink_OpenSpellbookRequest ( OpenSpellbookRequestEventArgs e ) : void
Spellbook ( ) : System
Spellbook ( ulong content ) : System

Method Details

AllowEquipedCast() public method

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

AllowSecureTrade() public method

public AllowSecureTrade ( Server.Mobile from, Server.Mobile to, Server.Mobile newOwner, bool accepted ) : bool
from Server.Mobile
to Server.Mobile
newOwner Server.Mobile
accepted bool
return bool

CanEquip() public method

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

Deserialize() public method

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

DisplayTo() public method

public DisplayTo ( Server.Mobile to ) : void
to Server.Mobile
return void

Find() public static method

public static Find ( Server.Mobile from, int spellID ) : Spellbook
from Server.Mobile
spellID int
return Spellbook

Find() public static method

public static Find ( Server.Mobile from, int spellID, SpellbookType type ) : Spellbook
from Server.Mobile
spellID int
type SpellbookType
return Spellbook

FindAllSpellbooks() public static method

public static FindAllSpellbooks ( Server.Mobile from ) : List
from Server.Mobile
return List

FindArcanist() public static method

public static FindArcanist ( Server.Mobile from ) : Spellbook
from Server.Mobile
return Spellbook

FindEquippedSpellbook() public static method

public static FindEquippedSpellbook ( Server.Mobile from ) : Spellbook
from Server.Mobile
return Spellbook

FindNecromancer() public static method

public static FindNecromancer ( Server.Mobile from ) : Spellbook
from Server.Mobile
return Spellbook

FindNinja() public static method

public static FindNinja ( Server.Mobile from ) : Spellbook
from Server.Mobile
return Spellbook

FindPaladin() public static method

public static FindPaladin ( Server.Mobile from ) : Spellbook
from Server.Mobile
return Spellbook

FindRegular() public static method

public static FindRegular ( Server.Mobile from ) : Spellbook
from Server.Mobile
return Spellbook

FindSamurai() public static method

public static FindSamurai ( Mobile from ) : Spellbook
from Mobile
return Spellbook

FindSpellbookInList() public static method

public static FindSpellbookInList ( List list, Mobile from, int spellID, SpellbookType type ) : Spellbook
list List
from Mobile
spellID int
type SpellbookType
return Spellbook

GetProperties() public method

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

GetTypeForSpell() public static method

public static GetTypeForSpell ( int spellID ) : SpellbookType
spellID int
return SpellbookType

HasSpell() public method

public HasSpell ( int spellID ) : bool
spellID int
return bool

Initialize() public static method

public static Initialize ( ) : void
return void

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 CraftSystem
typeRes Type
tool BaseTool
craftItem CraftItem
resHue int
return int

OnDoubleClick() public method

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

OnDragDrop() public method

public OnDragDrop ( Mobile from, Item dropped ) : bool
from Mobile
dropped Item
return bool

OnRemoved() public method

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

OnSingleClick() public method

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

Serialize() public method

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

Spellbook() public method

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

Spellbook() public method

public Spellbook ( ulong content, int itemID ) : System
content ulong
itemID int
return System

ValidateSpellbook() public static method

public static ValidateSpellbook ( Spellbook book, int spellID, SpellbookType type ) : bool
book Spellbook
spellID int
type SpellbookType
return bool