public enum Lamp {
S2N("N2S","S2W",false),S2W("N2E","E2W",false),E2W("W2E","E2S",false),E2S("W2N","S2N",false),
N2S(null,null,false),N2E(null,null,false),W2E(null,null,false),W2N(null,null,false),
S2E(null,null,true),E2N(null,null,true),N2W(null,null,true),W2S(null,null,true);
private boolean lighted; //是否是亮的
private String lampString; //灯的名字
private String nextString; //下一个灯
private Lamp(String lampString, String nextString, boolean lighted) {
this.lampString = lampString;
this.nextString = nextString;
this.lighted = lighted;
}
特别是N2S怎么在S2N里换做参数了?
|