entity.setGame(this);
int ownerId = entity.getOwnerId(); if (ownerId != Entity.NONE && getPlayer(ownerId) != null) { entity.setGame(this); newOutOfGame .addElement(entity); }
    public void setOutOfGameEntitiesVector(Vector vOutOfGame) {        if ( null == vOutOfGame ) {            throw new IllegalArgumentException                ( "New out-of-game list is null." );        }        this.vOutOfGame = vOutOfGame;        // Add these entities to the game.        for (Enumeration i = vOutOfGame.elements(); i.hasMoreElements();) {            final Entity entity = (Entity)i.nextElement();            entity.setGame(this);        }        processGameEvent(new GameEntityNewOffboardEvent(this));    }