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
KSubWorldSet.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 KSubWorldSetH
- #define KSubWorldSetH
- #include "KTimer.h"
- #ifndef _SERVER
- #include "KMapMusic.h"
- #else
- #include "KSubWorld.h"
- #endif
- class CORE_API KSubWorldSet
- {
- public:
- int m_nLoopRate; // 循环帧数
- #ifndef _SERVER
- KMapMusic m_cMusic;
- #endif
- private:
- KTimer m_Timer; // 计时器
- int m_nGameVersion;
- #ifndef _SERVER
- DWORD m_dwPing;
- #endif
- public:
- KSubWorldSet();
- BOOL Load(LPSTR szFileName);
- int SearchWorld(DWORD dwID);
- void MainLoop();
- void MessageLoop();
- BOOL SendMessage(int nSubWorldID, DWORD dwMsgType, int nParam1 = 0, int nParam2 = 0, int nParam3 = 0);
- int GetGameTime(){return m_nLoopRate;};
- int GetGameVersion() { return m_nGameVersion; }
- void Close();
- // Server上才有的几个方法
- #ifdef _SERVER
- void GetRevivalPosFromId(DWORD dwSubWorldId, int nRevivalId, POINT* pPos);
- #endif
- // Client上才有的几个方法
- #ifndef _SERVER
- void SetPing(DWORD dwTimer) { m_dwPing = dwTimer; }
- DWORD GetPing() { return m_dwPing; }
- void Paint();
- #endif
- };
- extern CORE_API KSubWorldSet g_SubWorldSet;
- #endif