C# Class MapServer.PlayerItem

ファイルを表示 Open project: dream-young-soul/soul Class Usage Examples

Public Methods

Method Description
AddItemInfo ( GameBase item ) : void
AddTradItem ( GameStruct info ) : void
AwardItem ( GameStruct info ) : GameStruct.RoleItemInfo
AwardItem ( uint itemid, byte postion, byte amount = 1, byte stronglv, byte gem1, byte gem2, byte gem3, byte warghost_exp, byte di_attack, byte shui_attack, byte huo_attack, byte feng_attack, bool limit = true ) : GameStruct.RoleItemInfo
AwardItem_Ret ( uint sortid, uint id ) : void
BuyGameShopItem ( uint itemid, int nAmount ) : void
BuyItem ( uint npcid, uint itemid ) : void
ChangeHair ( uint itemid ) : void
ChangeLookFace ( uint itemid ) : void
ClearItem ( uint id ) : void
DB_Save ( ) : void
DeleteItemByID ( uint id ) : bool
DeleteItemByItemID ( uint itemid, int count = 1 ) : bool
DeleteItemByItemName ( string name, int count = 1 ) : void
DeleteScripteItem ( ) : void
DropGold ( int gold ) : void
DropItemBag ( uint id ) : void
DropItemEquip ( uint id ) : void
Equip ( uint id, uint postion ) : void
FindItem ( string name, int &nCount ) : GameStruct.RoleItemInfo
FindItem ( uint id ) : GameStruct.RoleItemInfo
FindItem ( uint itemid, int &nCount ) : GameStruct.RoleItemInfo
GetArmorLook ( ) : uint
GetBagCount ( ) : int
GetDicItem ( ) : GameStruct.RoleItemInfo>.Dictionary
GetEquipByPostion ( byte postion ) : GameStruct.RoleItemInfo
GetEquipPostion ( GameStruct info ) : byte
GetEudemonCount ( ) : int
GetEudemonItemId ( uint eudemon_id ) : uint
GetItemCount ( uint itemid ) : int
GetItemStrongInfo ( List list ) : void
GetScriptItemId ( ) : uint
GetStrongItemCount ( ) : int
GetWeaponLook ( ) : uint
GiveStrongMoney ( int gold ) : void
Give_FashionChest ( uint itemid ) : void
IsEquip ( uint itemid ) : bool
IsGold ( uint itemid ) : bool
IsItemFull ( ) : bool
ItemLimit ( uint itemid, byte amount ) : GameStruct.RoleItemInfo
MoveItem ( uint id, ushort dest_postion ) : void
PlayerItem ( PlayerObject _play ) : System
Process_DieEudemon ( ) : void
RepairEquip ( uint npcid, uint itemid ) : void
SaveStrongMoney ( int gold ) : void
SellItem ( uint npcid, uint itemid ) : void
SendAllItemInfo ( ) : void
SendItemInfo ( GameStruct info, byte tag = NetMsg.MsgItemInfo.TAG_ROLEITEM ) : void
SendLookRoleInfo ( PlayerObject target ) : void
UnEquip ( uint id, uint oldpostion, bool isChangeLook = true ) : void
UpdateItemInfo ( uint id ) : void
UseItem ( uint id, uint dwdata, short param, short param1 ) : void

Private Methods

Method Description
CalcEquipLook ( GameStruct _item = null ) : void
GetDropItemPoint ( short &x, short &y ) : bool

Method Details

AddItemInfo() public method

public AddItemInfo ( GameBase item ) : void
item GameBase
return void

AddTradItem() public method

public AddTradItem ( GameStruct info ) : void
info GameStruct
return void

AwardItem() public method

public AwardItem ( GameStruct info ) : GameStruct.RoleItemInfo
info GameStruct
return GameStruct.RoleItemInfo

AwardItem() public method

public AwardItem ( uint itemid, byte postion, byte amount = 1, byte stronglv, byte gem1, byte gem2, byte gem3, byte warghost_exp, byte di_attack, byte shui_attack, byte huo_attack, byte feng_attack, bool limit = true ) : GameStruct.RoleItemInfo
itemid uint
postion byte
amount byte
stronglv byte
gem1 byte
gem2 byte
gem3 byte
warghost_exp byte
di_attack byte
shui_attack byte
huo_attack byte
feng_attack byte
limit bool
return GameStruct.RoleItemInfo

AwardItem_Ret() public method

public AwardItem_Ret ( uint sortid, uint id ) : void
sortid uint
id uint
return void

BuyGameShopItem() public method

public BuyGameShopItem ( uint itemid, int nAmount ) : void
itemid uint
nAmount int
return void

BuyItem() public method

public BuyItem ( uint npcid, uint itemid ) : void
npcid uint
itemid uint
return void

ChangeHair() public method

public ChangeHair ( uint itemid ) : void
itemid uint
return void

ChangeLookFace() public method

public ChangeLookFace ( uint itemid ) : void
itemid uint
return void

ClearItem() public method

public ClearItem ( uint id ) : void
id uint
return void

DB_Save() public method

public DB_Save ( ) : void
return void

DeleteItemByID() public method

public DeleteItemByID ( uint id ) : bool
id uint
return bool

DeleteItemByItemID() public method

public DeleteItemByItemID ( uint itemid, int count = 1 ) : bool
itemid uint
count int
return bool

DeleteItemByItemName() public method

public DeleteItemByItemName ( string name, int count = 1 ) : void
name string
count int
return void

DeleteScripteItem() public method

public DeleteScripteItem ( ) : void
return void

DropGold() public method

public DropGold ( int gold ) : void
gold int
return void

DropItemBag() public method

public DropItemBag ( uint id ) : void
id uint
return void

DropItemEquip() public method

public DropItemEquip ( uint id ) : void
id uint
return void

Equip() public method

public Equip ( uint id, uint postion ) : void
id uint
postion uint
return void

FindItem() public method

public FindItem ( string name, int &nCount ) : GameStruct.RoleItemInfo
name string
nCount int
return GameStruct.RoleItemInfo

FindItem() public method

public FindItem ( uint id ) : GameStruct.RoleItemInfo
id uint
return GameStruct.RoleItemInfo

FindItem() public method

public FindItem ( uint itemid, int &nCount ) : GameStruct.RoleItemInfo
itemid uint
nCount int
return GameStruct.RoleItemInfo

GetArmorLook() public method

public GetArmorLook ( ) : uint
return uint

GetBagCount() public method

public GetBagCount ( ) : int
return int

GetDicItem() public method

public GetDicItem ( ) : GameStruct.RoleItemInfo>.Dictionary
return GameStruct.RoleItemInfo>.Dictionary

GetEquipByPostion() public method

public GetEquipByPostion ( byte postion ) : GameStruct.RoleItemInfo
postion byte
return GameStruct.RoleItemInfo

GetEquipPostion() public method

public GetEquipPostion ( GameStruct info ) : byte
info GameStruct
return byte

GetEudemonCount() public method

public GetEudemonCount ( ) : int
return int

GetEudemonItemId() public method

public GetEudemonItemId ( uint eudemon_id ) : uint
eudemon_id uint
return uint

GetItemCount() public method

public GetItemCount ( uint itemid ) : int
itemid uint
return int

GetItemStrongInfo() public method

public GetItemStrongInfo ( List list ) : void
list List
return void

GetScriptItemId() public method

public GetScriptItemId ( ) : uint
return uint

GetStrongItemCount() public method

public GetStrongItemCount ( ) : int
return int

GetWeaponLook() public method

public GetWeaponLook ( ) : uint
return uint

GiveStrongMoney() public method

public GiveStrongMoney ( int gold ) : void
gold int
return void

Give_FashionChest() public method

public Give_FashionChest ( uint itemid ) : void
itemid uint
return void

IsEquip() public method

public IsEquip ( uint itemid ) : bool
itemid uint
return bool

IsGold() public method

public IsGold ( uint itemid ) : bool
itemid uint
return bool

IsItemFull() public method

public IsItemFull ( ) : bool
return bool

ItemLimit() public method

public ItemLimit ( uint itemid, byte amount ) : GameStruct.RoleItemInfo
itemid uint
amount byte
return GameStruct.RoleItemInfo

MoveItem() public method

public MoveItem ( uint id, ushort dest_postion ) : void
id uint
dest_postion ushort
return void

PlayerItem() public method

public PlayerItem ( PlayerObject _play ) : System
_play PlayerObject
return System

Process_DieEudemon() public method

public Process_DieEudemon ( ) : void
return void

RepairEquip() public method

public RepairEquip ( uint npcid, uint itemid ) : void
npcid uint
itemid uint
return void

SaveStrongMoney() public method

public SaveStrongMoney ( int gold ) : void
gold int
return void

SellItem() public method

public SellItem ( uint npcid, uint itemid ) : void
npcid uint
itemid uint
return void

SendAllItemInfo() public method

public SendAllItemInfo ( ) : void
return void

SendItemInfo() public method

public SendItemInfo ( GameStruct info, byte tag = NetMsg.MsgItemInfo.TAG_ROLEITEM ) : void
info GameStruct
tag byte
return void

SendLookRoleInfo() public method

public SendLookRoleInfo ( PlayerObject target ) : void
target PlayerObject
return void

UnEquip() public method

public UnEquip ( uint id, uint oldpostion, bool isChangeLook = true ) : void
id uint
oldpostion uint
isChangeLook bool
return void

UpdateItemInfo() public method

public UpdateItemInfo ( uint id ) : void
id uint
return void

UseItem() public method

public UseItem ( uint id, uint dwdata, short param, short param1 ) : void
id uint
dwdata uint
param short
param1 short
return void