controller.h

来自「支持网络和单机的麻将游戏」· C头文件 代码 · 共 45 行

H
45
字号
/* $Header: /home/jcb/newmj/RCS/controller.h,v 11.3 2001/08/19 16:00:54 jcb Rel $ * controller.h * Contains type definitions etc used by the controller program. *//****************** COPYRIGHT STATEMENT ********************** * This file is Copyright (c) 2000 by J. C. Bradfield.       * * Distribution and use is governed by the LICENCE file that * * accompanies this file.                                    * * The moral rights of the author are asserted.              * *                                                           * ***************** DISCLAIMER OF WARRANTY ******************** * This code is not warranted fit for any purpose. See the   * * LICENCE file for further information.                     * *                                                           * *************************************************************/#ifndef CONTROLLER_H_INCLUDED#define CONTROLLER_H_INCLUDED 1#include "tiles.h"#include "player.h"#include "protocol.h"#include "game.h"/* extra data in the game */typedef struct {  PlayerP caller; /* used to keep a copy of the winning player just		     before mah-jong */  /* array of pointers to CMsgs issued in this hand. This is     used when reconnecting. The array is 512, since the maximum     number of messages that can (relevantly) be issued in a hand     is around 4 per tile, but that's highly unlikely ever to be     reached -- but it can be, so say 1024. This ought to be dynamic... */  int histcount;  CMsgMsg *history[1024];  /* this is used to keep the state at the start of the last     hand, so we can print out the hand just completed */  /* needs one Game Message and as many options as there may be */  int prehistcount;  CMsgMsg *prehistory[1+GOEnd];} GameExtras;#define gextras(g) ((GameExtras *)(g->userdata))#endif /* CONTROLLER_H_INCLUDED */

⌨️ 快捷键说明

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