?? logiccontrol.java
字號:
package rich;
/**
* @author ZhiJian
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class LogicControl{
MapControl a;
RollDie dice;
int address;
Character[] game;
int count=0;
GUIControl gui;
public LogicControl(Character[] game){
dice = new RollDie();
address =0;
this.game = game;
gui = new GUIControl(this);
for(int i=0;i<game.length;i++){
gui.setCharacterInMap(game[i]); //set Character in Map
}
turning(); //starting the loop
}
public void turning(){ // make a loop for player
if(count==game.length){ count -= game.length;}
gui.turnPlayer(game[count++]);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -