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

📄 global.h

📁 通用网络游戏开发框架
💻 H
字号:
// This file needs -*- c++ -*- mode
// ============================================================================
// Global declarations
//
// (c) 2003 Ken Reed
//
// This is free software. You can redistribute it and/or modify it under the
// terms of the GNU General Public License version 2 as published by the Free
// Software Foundation.
// ============================================================================

#pragma once

#include "board.h"
#include "socket.h"
#include "universal.h"

#include <vector>
#include <string>

struct Client {
   bool        in_use;
   Socket *    socket;
   void   *    connection;

   Client() : in_use(false), socket(0), connection(0) {}
};

extern void        enable_fp_exceptions();

extern Board               board;
extern HWND                player_count;
extern bool                game_running;
extern char const * const  error_title;
extern std::vector<Client> clients;

⌨️ 快捷键说明

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