예제 #1
0
 //	GameRender.Paintable
 @Override
 public void paint() {
   int px = 0, py = 0;
   if (parent != null) {
     px = parent.getX();
     py = parent.getY();
   }
   shape.paint(gwin.getWin(), x + px, y + py);
 }
예제 #2
0
 public void paint() {
   int px = 0;
   int py = 0;
   if (parent != null) {
     px = parent.getX();
     py = parent.getY();
   }
   if (pushed) onShape.paint(gwin.getWin(), x + px, y + py);
   else shape.paint(gwin.getWin(), x + px, y + py);
 }