// 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); }
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); }