⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 client.h

📁 国外一套很好的游戏代码,款经典的小游戏 希望大家提出宝贵意见 让我们一起进步
💻 H
字号:
/*	client.h			(c) Richard Thrippleton	Licensing terms are in the 'LICENSE' file	If that file is not included with this source then permission is not given to use this source in any way whatsoever.*/#include <SDL_net.h>class sockhelper;class client //Module to handle connection to servers{	public:	static void init(); //Initialise the client datastructures	static void stop(); //Clean up and terminate client, disconnecting from the server	static void connect(char* host); //Connect to given host	static void flush(); //Flush connection buffers	static void poll(); //Run the client for a cycle, polling for new objects and acting on them	static void action(int typ,long opr); //Send an action to the server, given action number and operand	private:	static void readln(); //Handles a server readline request until it's done, with password hiding style optional	static bool edit; //In edit mode?	static bool hide; //In passworded edit?	static TCPsocket sock; //TCP socket to server	static sockhelper* hlpr; //Socket wrapper	static int btck; //Byte count ticker	static int sync; //Synchronisation counter};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -