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

📄 coloredlot.java

📁 大富翁游戏monopoli
💻 JAVA
字号:
import java.util.*;public abstract class ColoredLot extends Allotment {  protected LotColors color;  protected static Hashtable<LotColors, Integer> _owns = new Hashtable<LotColors, Integer>(); // un lotto appartiene allo stesso player?    public void setOwner(int own) {    owner = own;    Integer n = _owns.get(color);    if (n == null) _owns.put(color, new Integer(own));    else _owns.put(color, new Integer(own*n.intValue()));  }  public LotColors getColor() {return color;}  public int getLotsOwner(LotColors c) {return _owns.get(c);}}

⌨️ 快捷键说明

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