entitySprites.removeAllElements(); entitySpriteIds.clear();
Vector newSprites = new Vector(game.getNoOfEntities()); Hashtable newSpriteIds = new Hashtable(game.getNoOfEntities());
    private void redrawAllEntities() {        entitySprites.removeAllElements();        entitySpriteIds.clear();                for (java.util.Enumeration i = game.getEntities(); i.hasMoreElements();) {            final Entity entity = (Entity)i.nextElement();            redrawEntity(entity);        }        repaint(100);    }