C# Class OpenNos.GameObject.MapMonster

Inheritance: OpenNos.Data.MapMonsterDTO
Afficher le fichier Open project: OpenNos/OpenNos Class Usage Examples

Private Properties

Свойство Type Description
FollowTarget void
GenerateDamage int
MonsterLife void
Move void
RemoveTarget void
Respawn void
TargetHit void

Méthodes publiques

Méthode 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

Méthode 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 méthode

public GenerateEff ( int effect ) : string
effect int
Résultat string

GenerateIn3() public méthode

public GenerateIn3 ( ) : string
Résultat string

GenerateMv3() public méthode

public GenerateMv3 ( ) : string
Résultat string

Initialize() public méthode

public Initialize ( ) : void
Résultat void

Initialize() public méthode

public Initialize ( Map currentMap ) : void
currentMap Map
Résultat void

IsInRange() public méthode

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.
Résultat bool

MapMonster() public méthode

public MapMonster ( ) : System
Résultat System

StartLife() public méthode

public StartLife ( ) : void
Résultat void