Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
KBuySell.h
Package: SwordOnline.rar [view]
Upload User: dzyhzl
Upload Date: 2019-04-29
Package Size: 56270k
Code Size: 1k
Category:
Game Server Simulator
Development Platform:
C/C++
- #ifndef KBuySellH
- #define KBuySellH
- #define BUY_SELL_SCALE 4
- class KItem;
- typedef struct
- {
- int nGenre;
- int nDetailType;
- int nParticularType;
- int nSeriesReq;
- int nLevel;
- int nPrice;
- } ItemGenerate;
- class KInventory;
- class KBuySell
- {
- public:
- KBuySell();
- ~KBuySell();
- BOOL Init();
- int GetWidth() { return m_Width; }
- int GetHeight() { return m_Height; }
- KItem* GetItem(int nIndex);
- int GetItemIndex(int nShop, int nIndex);
- private:
- int** m_SellItem;
- KItem* m_Item;
- int m_Width;
- int m_Height;
- int m_MaxItem;
- public:
- #ifdef _SERVER
- void OpenSale(int nPlayerIdx, int nShop);
- BOOL Buy(int nPlayerIdx, int nBuy, int nBuyIdx, int nPlace, int nX, int nY); // 买第几个买卖列表中的第几项道具
- BOOL Sell(int nPlayerIdx, int nBuy, int nIdx);
- #endif
- #ifndef _SERVER
- KInventory* m_pShopRoom;
- void OpenSale(int nShop);
- void PaintItem(int nIdx, int nX, int nY);
- #endif
- };
- extern KBuySell BuySell;
- #endif