globals.java

来自「Java games programing--很好的java游戏编程源码」· Java 代码 · 共 34 行

JAVA
34
字号
package com.hypefiend.javagamebook.common;/** * Globals.java * * Common constants for client and server *  * @author <a href="mailto:bret@hypefiend.com">bret barker</a> * @version 1.0 */public class Globals {    /** port the server listens on */    public static final int PORT = 8398;    /** size of ByteBuffer for reading/writing from channels */    public static final int NET_BUFFER_SIZE=512;    /** maximum event size in bytes */    public static final int MAX_EVENT_SIZE=5000;    /** interval to sleep between attempts to write to a channel. */    public static final long CHANNEL_WRITE_SLEEP = 10L;    /** number of worker threads for EventWriter */    public static final int EVENT_WRITER_WORKERS = 5;    /** default number of workers for GameControllers */    public static final int DEFAULT_CONTROLLER_WORKERS = 5;}

⌨️ 快捷键说明

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