megamek.debug.Assert.assertTrue(entities.size()==entityIds.size());
    public void addEntity(int id, Entity entity) {        entity.setGame(this);        entities.addElement(entity);        entityIds.put(new Integer(id), entity);                if(id > lastEntityId) lastEntityId = id;        processGameEvent(new GameEntityNewEvent(this, entity));    }