public void setGame(Game game) {
public void setGame(IGame game) {
    public void setGame(Game game) {        this.game = game;        this.restore();        // Make sure the owner is set.        if ( null == owner ) {            if ( Entity.NONE == ownerId ) {                throw new IllegalStateException                    ( "Entity doesn't know its owner's ID." );            } else {                Player player = game.getPlayer(ownerId);                if ( null == player ) {                    System.err.println                        ( "Entity can't find player #" + ownerId );                } else {                    setOwner( player );                }            }        }        // Also set game for each entity "loaded" in this entity.        Vector v = this.getLoadedUnits();        Enumeration iter = v.elements();        while (iter.hasMoreElements())        {           ((Entity)iter.nextElement()).setGame(game);        }    }