コード例 #1
0
 public synchronized void step() {
   EventPoint eventpoint = Events.pop();
   if (eventpoint != null) {
     XPos = Math.max(XPos, (int) eventpoint.x);
     eventpoint.action(this);
   } else if (XPos < getBounds().width) {
     XPos = getBounds().width;
   } else {
     init();
   }
   Arcs.checkBounds(this, XPos);
   repaint();
 }
コード例 #2
0
ファイル: MyCanvas.java プロジェクト: eserte/bbbike
 public MyCanvas(BBBike app_arg) {
   app = app_arg;
   init();
 }
コード例 #3
0
 public synchronized void restart() {
   init();
   repaint();
 }
コード例 #4
0
ファイル: MyCanvas.java プロジェクト: eserte/bbbike
 public MyCanvas() {
   init();
 }