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
KPlayerMenuState.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++
- //---------------------------------------------------------------------------
- // Sword3 Engine (c) 2002 by Kingsoft
- //
- // File: KPlayerMenuState.h
- // Date: 2002.12.10
- // Code: 边城浪子
- // Desc: PlayerMenuState Class
- //---------------------------------------------------------------------------
- #ifndef KPLAYERMENUSTATE_H
- #define KPLAYERMENUSTATE_H
- #include "GameDataDef.h"
- enum
- {
- PLAYER_MENU_STATE_NORMAL = 0,
- PLAYER_MENU_STATE_TEAMOPEN,
- PLAYER_MENU_STATE_TRADEOPEN,
- PLAYER_MENU_STATE_TRADING,
- PLAYER_MENU_STATE_IDLE,
- PLAYER_MENU_STATE_NUM,
- };
- class KPlayerMenuState
- {
- public:
- int m_nState;
- int m_nTradeDest; // 服务器端记的是 player index 客户端记的是 npc id
- int m_nTradeState; // 是否已经点了ok 0 没有 1 点了
- char m_szSentence[MAX_SENTENCE_LENGTH];
- #ifdef _SERVER
- int m_nBackState;
- char m_szBackSentence[MAX_SENTENCE_LENGTH];
- #endif
- #ifndef _SERVER
- int m_nTradeDestState;
- #endif
- public:
- KPlayerMenuState();
- #ifdef _SERVER
- void Release();
- void BackupState();
- void RestoreState();
- void SetState(int nPlayerIdx, int nState, char *lpszSentence = NULL, int nSentenceLength = 0, DWORD dwDestNpcID = 0);
- void RestoreBackupState(int nPlayerIdx);
- #endif
- #ifndef _SERVER
- void Release();
- void SetState(int nState);
- #endif
- };
- class KPlayerMenuStateGraph
- {
- public:
- char m_szName[PLAYER_MENU_STATE_NUM][80];
- public:
- BOOL Init();
- void GetStateSpr(int nState, char *lpszGetName);
- };
- #endif