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();
 }
Ejemplo n.º 2
0
 public MyCanvas(BBBike app_arg) {
   app = app_arg;
   init();
 }
 public synchronized void restart() {
   init();
   repaint();
 }
Ejemplo n.º 4
0
 public MyCanvas() {
   init();
 }