Example #1
0
  public void drawPickables() {

    Collections.sort(objects, new ItemSorter());

    for (GameObject o : objects) {
      if (o instanceof Pickable) {
        o.delete();
        o.draw();
      }
    }
  }