/// <summary> /// パケットの新しいインスタンスをリクエスト,ゲーム情報,ゲーム設定を与えて初期化する /// </summary> /// <param name="request">リクエスト</param> /// <param name="gameInfo">ゲーム情報</param> /// <param name="gameSetting">ゲーム設定</param> #else /// <summary> /// Initializes a new instance of this class with request, game information and setting of game given. /// </summary> /// <param name="request">Request given.</param> /// <param name="gameInfo">Game information given.</param> /// <param name="gameSetting">GameSetting representation of setting of game given.</param> #endif public Packet(Request request, GameInfo gameInfo, GameSetting gameSetting) : this(request, gameInfo) { this.gameSetting = gameSetting; }
public AIWolfGame(GameSetting gameSetting, IGameServer gameServer) { rand = new Random(); this.gameSetting = gameSetting; this.gameServer = gameServer; }
/// <summary> /// AIWolfGameクラスの新しいインスタンスを初期化する /// </summary> /// <param name="gameSetting">ゲーム設定</param> /// <param name="gameServer">ゲームサーバ</param> #else /// <summary> /// Initializes a new instance of this class. /// </summary> /// <param name="gameSetting">The setting of this game.</param> /// <param name="gameServer">The game server.</param> #endif public AIWolfGame(GameSetting gameSetting, IGameServer gameServer) { this.gameSetting = gameSetting; this.gameServer = gameServer; }
/// <summary> /// Initializes a new instance of this class. /// </summary> /// <param name="port">The port number.</param> /// <param name="limit">The upper limit of the number of connections.</param> /// <param name="gameSetting">The setting of the game.</param> public TcpipServer(int port, int limit, GameSetting gameSetting) { GameSetting = gameSetting; this.port = port; connectionLimit = limit; }