C# Class Codebreak.Service.World.Game.Spell.SpellBook

Inheritance: IDisposable
Mostra file Open project: hussein-aitlahcen/codebreak

Public Methods

Method Description
AddSpell ( int spellId, int level = 1, int position = 25 ) : void

Dispose ( ) : void

GenerateLevelUpSpell ( CharacterBreedEnum breed, int level ) : void

GetSpellLevel ( int spellId ) : SpellLevel

GetSpells ( ) : IEnumerable

HasSpell ( int spellId ) : bool

Initialize ( ) : void

LevelUp ( int spellId ) : bool

MoveSpell ( int spellId, int position ) : bool

Reset ( CharacterBreedEnum breed ) : void

SerializeAs_SpellsListMessage ( StringBuilder message ) : void

SpellBook ( int type, long id ) : System

Method Details

AddSpell() public method

public AddSpell ( int spellId, int level = 1, int position = 25 ) : void
spellId int
level int
position int
return void

Dispose() public method

public Dispose ( ) : void
return void

GenerateLevelUpSpell() public method

public GenerateLevelUpSpell ( CharacterBreedEnum breed, int level ) : void
breed CharacterBreedEnum
level int
return void

GetSpellLevel() public method

public GetSpellLevel ( int spellId ) : SpellLevel
spellId int
return SpellLevel

GetSpells() public method

public GetSpells ( ) : IEnumerable
return IEnumerable

HasSpell() public method

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

Initialize() public method

public Initialize ( ) : void
return void

LevelUp() public method

public LevelUp ( int spellId ) : bool
spellId int
return bool

MoveSpell() public method

public MoveSpell ( int spellId, int position ) : bool
spellId int
position int
return bool

Reset() public method

public Reset ( CharacterBreedEnum breed ) : void
breed CharacterBreedEnum
return void

SerializeAs_SpellsListMessage() public method

public SerializeAs_SpellsListMessage ( StringBuilder message ) : void
message StringBuilder
return void

SpellBook() public method

public SpellBook ( int type, long id ) : System
type int
id long
return System