C# Class LKCamelot.model.CastHandler

Mostrar archivo Open project: vans163/LKEmu Class Usage Examples

Public Methods

Method Description
CastHandler ( io client, PlayerHandler handler ) : System
CreateMagicEffect ( Point2D target, string map, byte sprite, int time = 1500 ) : void
HandleCast ( int header, script castspell, Player player, int target, short castx, short casty ) : void
TakeDamage ( Player caster, Player target, script spell ) : void

Method Details

CastHandler() public method

public CastHandler ( io client, PlayerHandler handler ) : System
client io
handler PlayerHandler
return System

CreateMagicEffect() public method

public CreateMagicEffect ( Point2D target, string map, byte sprite, int time = 1500 ) : void
target Point2D
map string
sprite byte
time int
return void

HandleCast() public method

public HandleCast ( int header, script castspell, Player player, int target, short castx, short casty ) : void
header int
castspell script
player Player
target int
castx short
casty short
return void

TakeDamage() public method

public TakeDamage ( Player caster, Player target, script spell ) : void
caster Player
target Player
spell script
return void