constants.java

来自「自己写的monopoly 游戏代码」· Java 代码 · 共 41 行

JAVA
41
字号
package com.xmu.typot.constant;

import java.awt.Color;

/**
 * 定义常量
 * @author typot
 * 2007.12.25
 */
public class Constants {
	public static final int MAX_MONEY = 50000;
	
	public static final int ROUNDS_TOTAL = 20;
	
	public static final int PLAYERS_TOTAL = 2;
	
	public static final int RENT1 = 1000;
	
	public static final int RENT2 = 1500;
	
	public static final int RENT3 = 2000;
	
	public static final int RENT4 = 2500;
	
	public static final Color COLOR1 = Color.cyan;
	
	public static final Color COLOR2 = Color.darkGray;
	
	public static final Color COLOR3 = Color.orange;
	
	public static final Color COLOR4 = Color.pink;
	
	public static final int SIZE = 40;
	
	public static final int PRISON_TYPE = 1;
	
	public static final int HOSPITAL_TYPE = 2;
	
	public static final boolean isTest = true;
}

⌨️ 快捷键说明

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