C# Class OpenNos.GameObject.MapMonster

Inheritance: OpenNos.Data.MapMonsterDTO
Mostra file Open project: OpenNos/OpenNos Class Usage Examples

Private Properties

Property Type Description
FollowTarget void
GenerateDamage int
MonsterLife void
Move void
RemoveTarget void
Respawn void
TargetHit void

Public Methods

Method Description
GenerateEff ( int effect ) : string
GenerateIn3 ( ) : string
GenerateMv3 ( ) : string
Initialize ( ) : void
Initialize ( Map currentMap ) : void
IsInRange ( short mapX, short mapY, byte distance ) : bool

Check if the Monster is in the given Range.

MapMonster ( ) : System
StartLife ( ) : void

Private Methods

Method Description
FollowTarget ( ClientSession targetSession ) : void

Follow the Monsters target to it's position.

GenerateDamage ( Character targetCharacter, Skill skill, int &hitmode ) : int

Generate the Monster -> Character Damage

MonsterLife ( ) : void

Handle any kind of Monster interaction

Move ( ) : void
RemoveTarget ( ) : void

Remove the current Target from Monster.

Respawn ( ) : void
TargetHit ( ClientSession targetSession, NpcMonsterSkill npcMonsterSkill ) : void

Hit the Target Character.

Method Details

GenerateEff() public method

public GenerateEff ( int effect ) : string
effect int
return string

GenerateIn3() public method

public GenerateIn3 ( ) : string
return string

GenerateMv3() public method

public GenerateMv3 ( ) : string
return string

Initialize() public method

public Initialize ( ) : void
return void

Initialize() public method

public Initialize ( Map currentMap ) : void
currentMap Map
return void

IsInRange() public method

Check if the Monster is in the given Range.
public IsInRange ( short mapX, short mapY, byte distance ) : bool
mapX short The X coordinate on the Map of the object to check.
mapY short The Y coordinate on the Map of the object to check.
distance byte The maximum distance of the object to check.
return bool

MapMonster() public method

public MapMonster ( ) : System
return System

StartLife() public method

public StartLife ( ) : void
return void