C# Class FOnline.Item

ファイルを表示 Open project: wladimiiir/vault112

Public Methods

Method Description
AddItem ( ushort pid, uint count, uint special_id ) : Item
AddRef ( ) : void
Animate ( byte from_frame, byte to_frame ) : void
ChangeProto ( ushort pid ) : bool
EvenWalk ( Critter cr, bool entered, Direction dir ) : void
EventAttack ( Critter attacker, Critter target ) : bool
EventDrop ( Critter cr ) : void
EventFinish ( bool deleted ) : void
EventMove ( Critter cr, ItemSlot from_slot ) : void
EventSkill ( Critter cr, int skill ) : bool
EventUse ( Critter cr, Critter on_critter, Item on_item, Scenery on_scenery ) : bool
EventUseOnMe ( Critter cr, Item used_item ) : bool
GetChild ( uint child_index ) : Item
GetCost ( IntPtr thisptr ) : uint
GetCount ( ) : uint
GetItem ( ushort pid, uint special_id ) : Item
GetItems ( uint special_id, ItemArray items ) : uint
GetMapPosition ( ushort &hx, ushort &hy ) : Map
GetProtoId ( ) : ushort
GetType ( ) : byte
RaiseDrop ( Critter cr ) : void
RaiseFinish ( bool deleted ) : void
RaiseMove ( Critter cr, byte from_slot ) : void
RaiseUse ( Critter cr, Critter on_critter, Item on_item, IntPtr on_scenery ) : bool
RaiseWalk ( Critter cr, bool entered, byte dir ) : void
Release ( ) : void
SetCount ( uint count ) : void
SetLexems ( string lexems ) : void
Update ( ) : void

Private Methods

Method Description
AddRef ( IntPtr ptr ) : void
Container_AddItem ( IntPtr thisptr, ushort pid, uint count, uint special_id ) : IntPtr
Container_GetItem ( IntPtr thisptr, ushort pid, uint special_id ) : IntPtr
Container_GetItems ( IntPtr thisptr, uint special_id, IntPtr items ) : uint
Item_Animate ( IntPtr thisptr, byte from_frame, byte to_frame ) : void
Item_ChangeProto ( IntPtr thisptr, ushort pid ) : bool
Item_EventAttack ( IntPtr thisptr, IntPtr attacker, IntPtr target ) : bool
Item_EventDrop ( IntPtr thisptr, IntPtr cr ) : void
Item_EventFinish ( IntPtr thisptr, bool deleted ) : void
Item_EventMove ( IntPtr thisptr, IntPtr cr, byte from_slot ) : void
Item_EventSkill ( IntPtr thisptr, IntPtr cr, int skill ) : bool
Item_EventUse ( IntPtr thisptr, IntPtr cr, IntPtr on_critter, IntPtr on_item, IntPtr on_scenery ) : bool
Item_EventUseOnMe ( IntPtr thisptr, IntPtr cr, IntPtr used_item ) : bool
Item_EventWalk ( IntPtr thisptr, IntPtr cr, bool entered, byte dir ) : void
Item_GetChild ( IntPtr thisptr, uint child_index ) : IntPtr
Item_GetCost ( IntPtr thisptr ) : uint
Item_GetCount ( IntPtr thisptr ) : uint
Item_GetMapPosition ( IntPtr thisptr, ushort &hx, ushort &hy ) : IntPtr
Item_GetProto ( IntPtr thisptr ) : IntPtr
Item_GetProtoId ( IntPtr thisptr ) : ushort
Item_GetScriptId ( IntPtr thisptr ) : uint
Item_GetType ( IntPtr thisptr ) : byte
Item_IsDeteriorable ( IntPtr thisptr ) : bool
Item_IsStackable ( IntPtr thisptr ) : bool
Item_SetCount ( IntPtr thisptr, uint count ) : void
Item_SetEvent ( IntPtr thisptr, int event_type, IntPtr func_name ) : bool
Item_SetLexems ( IntPtr thisptr, IntPtr lexems ) : void
Item_SetScript ( IntPtr thisptr, IntPtr script ) : bool
Item_Update ( IntPtr thisptr ) : void
Item_get_Flags ( IntPtr thisptr ) : uint
Item_get_TrapValue ( IntPtr thisptr ) : short
Item_set_Flags ( IntPtr thisptr, uint value ) : void
Item_set_TrapValue ( IntPtr thisptr, short value ) : void
RaiseAttack ( Critter cr, Critter target ) : bool
RaiseSkill ( Critter cr, int skill ) : bool
RaiseUseOnMe ( Critter cr, Item used_item ) : bool
Release ( IntPtr ptr ) : void

Method Details

AddItem() public method

public AddItem ( ushort pid, uint count, uint special_id ) : Item
pid ushort
count uint
special_id uint
return Item

AddRef() public method

public AddRef ( ) : void
return void

Animate() public method

public Animate ( byte from_frame, byte to_frame ) : void
from_frame byte
to_frame byte
return void

ChangeProto() public method

public ChangeProto ( ushort pid ) : bool
pid ushort
return bool

EvenWalk() public method

public EvenWalk ( Critter cr, bool entered, Direction dir ) : void
cr Critter
entered bool
dir Direction
return void

EventAttack() public method

public EventAttack ( Critter attacker, Critter target ) : bool
attacker Critter
target Critter
return bool

EventDrop() public method

public EventDrop ( Critter cr ) : void
cr Critter
return void

EventFinish() public method

public EventFinish ( bool deleted ) : void
deleted bool
return void

EventMove() public method

public EventMove ( Critter cr, ItemSlot from_slot ) : void
cr Critter
from_slot ItemSlot
return void

EventSkill() public method

public EventSkill ( Critter cr, int skill ) : bool
cr Critter
skill int
return bool

EventUse() public method

public EventUse ( Critter cr, Critter on_critter, Item on_item, Scenery on_scenery ) : bool
cr Critter
on_critter Critter
on_item Item
on_scenery Scenery
return bool

EventUseOnMe() public method

public EventUseOnMe ( Critter cr, Item used_item ) : bool
cr Critter
used_item Item
return bool

GetChild() public method

public GetChild ( uint child_index ) : Item
child_index uint
return Item

GetCost() public method

public GetCost ( IntPtr thisptr ) : uint
thisptr System.IntPtr
return uint

GetCount() public method

public GetCount ( ) : uint
return uint

GetItem() public method

public GetItem ( ushort pid, uint special_id ) : Item
pid ushort
special_id uint
return Item

GetItems() public method

public GetItems ( uint special_id, ItemArray items ) : uint
special_id uint
items ItemArray
return uint

GetMapPosition() public method

public GetMapPosition ( ushort &hx, ushort &hy ) : Map
hx ushort
hy ushort
return Map

GetProtoId() public method

public GetProtoId ( ) : ushort
return ushort

GetType() public method

public GetType ( ) : byte
return byte

RaiseDrop() public method

public RaiseDrop ( Critter cr ) : void
cr Critter
return void

RaiseFinish() public method

public RaiseFinish ( bool deleted ) : void
deleted bool
return void

RaiseMove() public method

public RaiseMove ( Critter cr, byte from_slot ) : void
cr Critter
from_slot byte
return void

RaiseUse() public method

public RaiseUse ( Critter cr, Critter on_critter, Item on_item, IntPtr on_scenery ) : bool
cr Critter
on_critter Critter
on_item Item
on_scenery System.IntPtr
return bool

RaiseWalk() public method

public RaiseWalk ( Critter cr, bool entered, byte dir ) : void
cr Critter
entered bool
dir byte
return void

Release() public method

public Release ( ) : void
return void

SetCount() public method

public SetCount ( uint count ) : void
count uint
return void

SetLexems() public method

public SetLexems ( string lexems ) : void
lexems string
return void

Update() public method

public Update ( ) : void
return void