C# Class MapServer.MonsterObject

Inheritance: BaseObject
Datei anzeigen Open project: dream-young-soul/soul Class Usage Examples

Protected Properties

Property Type Description
attr GameStruct.MonterAttribute
mRebirthTime uint

Public Methods

Method Description
Alive ( bool init = true ) : void
CanPK ( BaseObject obj, bool bGoCrime = true ) : bool
ClearThis ( ) : void
CreateAi ( int nAi_Id ) : AI.BaseAI
DropItem ( BaseObject attack ) : void
GetAi ( ) : AI.BaseAI
GetAttribute ( ) : MonterAttribute
GetBasicAttribute ( ) : MonsterInfo
GetDefense ( ) : int
GetLevel ( ) : byte
GetMagicAck ( ) : int
GetMagicDefense ( ) : int
GetMaxAck ( ) : int
GetMinAck ( ) : int
Injured ( BaseObject obj, uint value, NetMsg info ) : void
IsClear ( ) : bool
IsDie ( ) : bool
MonsterObject ( uint _id, int nAi_Id, short x, short y, bool isCreateTypeId = true ) : System
RefreshVisibleObject ( ) : void
Run ( ) : bool
SetAi ( AI _ai ) : void
SetRebirthTime ( uint nTime ) : void
Walk ( byte dir ) : void
Walk ( byte dir, short x, short y ) : void

Protected Methods

Method Description
ProcessAction_Die ( GameStruct act ) : void
ProcessAction_Injured ( GameStruct act ) : void
ProcessAction_Move ( GameStruct act ) : void

Private Methods

Method Description
GetDropItemPoint ( short &x, short &y ) : bool

Method Details

Alive() public method

public Alive ( bool init = true ) : void
init bool
return void

CanPK() public method

public CanPK ( BaseObject obj, bool bGoCrime = true ) : bool
obj BaseObject
bGoCrime bool
return bool

ClearThis() public method

public ClearThis ( ) : void
return void

CreateAi() public method

public CreateAi ( int nAi_Id ) : AI.BaseAI
nAi_Id int
return AI.BaseAI

DropItem() public method

public DropItem ( BaseObject attack ) : void
attack BaseObject
return void

GetAi() public method

public GetAi ( ) : AI.BaseAI
return AI.BaseAI

GetAttribute() public method

public GetAttribute ( ) : MonterAttribute
return GameStruct.MonterAttribute

GetBasicAttribute() public method

public GetBasicAttribute ( ) : MonsterInfo
return GameStruct.MonsterInfo

GetDefense() public method

public GetDefense ( ) : int
return int

GetLevel() public method

public GetLevel ( ) : byte
return byte

GetMagicAck() public method

public GetMagicAck ( ) : int
return int

GetMagicDefense() public method

public GetMagicDefense ( ) : int
return int

GetMaxAck() public method

public GetMaxAck ( ) : int
return int

GetMinAck() public method

public GetMinAck ( ) : int
return int

Injured() public method

public Injured ( BaseObject obj, uint value, NetMsg info ) : void
obj BaseObject
value uint
info NetMsg
return void

IsClear() public method

public IsClear ( ) : bool
return bool

IsDie() public method

public IsDie ( ) : bool
return bool

MonsterObject() public method

public MonsterObject ( uint _id, int nAi_Id, short x, short y, bool isCreateTypeId = true ) : System
_id uint
nAi_Id int
x short
y short
isCreateTypeId bool
return System

ProcessAction_Die() protected method

protected ProcessAction_Die ( GameStruct act ) : void
act GameStruct
return void

ProcessAction_Injured() protected method

protected ProcessAction_Injured ( GameStruct act ) : void
act GameStruct
return void

ProcessAction_Move() protected method

protected ProcessAction_Move ( GameStruct act ) : void
act GameStruct
return void

RefreshVisibleObject() public method

public RefreshVisibleObject ( ) : void
return void

Run() public method

public Run ( ) : bool
return bool

SetAi() public method

public SetAi ( AI _ai ) : void
_ai AI
return void

SetRebirthTime() public method

public SetRebirthTime ( uint nTime ) : void
nTime uint
return void

Walk() public method

public Walk ( byte dir ) : void
dir byte
return void

Walk() public method

public Walk ( byte dir, short x, short y ) : void
dir byte
x short
y short
return void

Property Details

attr protected_oe property

protected MonterAttribute,GameStruct attr
return GameStruct.MonterAttribute

mRebirthTime protected_oe property

protected uint mRebirthTime
return uint