⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lotcolors.java

📁 大富翁游戏monopoli
💻 JAVA
字号:
enum LotColors {   yellow("y"), cyan("c"), purple("p"), red("r"), violet("v"), orange("o"), brown("b"), green("g");  private String _code;  LotColors(String c) {_code = c;}  public String toString() {return _code;}          public static LotColors toColor(char c) {    switch (c) {      case 'y': return LotColors.yellow;      case 'c': return LotColors.cyan;       case 'p': return LotColors.purple;      case 'r': return LotColors.red;       case 'v': return LotColors.violet;       case 'o': return LotColors.orange;       case 'b': return LotColors.brown;       case 'g': return LotColors.green;       default: return null;    }      }};

⌨️ 快捷键说明

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