connectnconstants.java

来自「connectN 网络游戏。内含server and client端源程序」· Java 代码 · 共 25 行

JAVA
25
字号
package utility;

import java.awt.Color;

public interface ConnectNConstants {
	public static int PLAYER1 = 1; // Indicate player 1
	public static int PLAYER2 = 2; // Indicate player 2
	public static int PLAYER1_WON = 1; // Indicate player 1 won
	public static int PLAYER2_WON = 2; // Indicate player 2 won
	public static int START = 0; // Indicate to start
	public static int DRAW = 3; // Indicate a draw
	public static int CONTINUE = 4; // Indicate to continue
	public static int SECONDTIME = 5; // Indicate the second move
	public static int WAITFORSECONDMOVE = 6; // Indicate to wait for a second
												// move
	public static final int TIMEOUT = 30;
	public static final int TIMEUNIT = 1000;
	public static final int CONNECT4 = 4;
	public static final int CONNECT5 = 5;
	public static final int ONETURN = 1;
	public static final int TWOTURN = 2;
	public static final Color PLAYER1COLOR = Color.BLUE;
	public static final Color PLAYER2COLOR = Color.RED;
}

⌨️ 快捷键说明

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