C# Class FOnline.Item

Afficher le fichier Open project: wladimiiir/vault112

Méthodes publiques

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

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

public AddItem ( ushort pid, uint count, uint special_id ) : Item
pid ushort
count uint
special_id uint
Résultat Item

AddRef() public méthode

public AddRef ( ) : void
Résultat void

Animate() public méthode

public Animate ( byte from_frame, byte to_frame ) : void
from_frame byte
to_frame byte
Résultat void

ChangeProto() public méthode

public ChangeProto ( ushort pid ) : bool
pid ushort
Résultat bool

EvenWalk() public méthode

public EvenWalk ( Critter cr, bool entered, Direction dir ) : void
cr Critter
entered bool
dir Direction
Résultat void

EventAttack() public méthode

public EventAttack ( Critter attacker, Critter target ) : bool
attacker Critter
target Critter
Résultat bool

EventDrop() public méthode

public EventDrop ( Critter cr ) : void
cr Critter
Résultat void

EventFinish() public méthode

public EventFinish ( bool deleted ) : void
deleted bool
Résultat void

EventMove() public méthode

public EventMove ( Critter cr, ItemSlot from_slot ) : void
cr Critter
from_slot ItemSlot
Résultat void

EventSkill() public méthode

public EventSkill ( Critter cr, int skill ) : bool
cr Critter
skill int
Résultat bool

EventUse() public méthode

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

EventUseOnMe() public méthode

public EventUseOnMe ( Critter cr, Item used_item ) : bool
cr Critter
used_item Item
Résultat bool

GetChild() public méthode

public GetChild ( uint child_index ) : Item
child_index uint
Résultat Item

GetCost() public méthode

public GetCost ( IntPtr thisptr ) : uint
thisptr System.IntPtr
Résultat uint

GetCount() public méthode

public GetCount ( ) : uint
Résultat uint

GetItem() public méthode

public GetItem ( ushort pid, uint special_id ) : Item
pid ushort
special_id uint
Résultat Item

GetItems() public méthode

public GetItems ( uint special_id, ItemArray items ) : uint
special_id uint
items ItemArray
Résultat uint

GetMapPosition() public méthode

public GetMapPosition ( ushort &hx, ushort &hy ) : Map
hx ushort
hy ushort
Résultat Map

GetProtoId() public méthode

public GetProtoId ( ) : ushort
Résultat ushort

GetType() public méthode

public GetType ( ) : byte
Résultat byte

RaiseDrop() public méthode

public RaiseDrop ( Critter cr ) : void
cr Critter
Résultat void

RaiseFinish() public méthode

public RaiseFinish ( bool deleted ) : void
deleted bool
Résultat void

RaiseMove() public méthode

public RaiseMove ( Critter cr, byte from_slot ) : void
cr Critter
from_slot byte
Résultat void

RaiseUse() public méthode

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

RaiseWalk() public méthode

public RaiseWalk ( Critter cr, bool entered, byte dir ) : void
cr Critter
entered bool
dir byte
Résultat void

Release() public méthode

public Release ( ) : void
Résultat void

SetCount() public méthode

public SetCount ( uint count ) : void
count uint
Résultat void

SetLexems() public méthode

public SetLexems ( string lexems ) : void
lexems string
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void