void Map::draw() { MapObject * o = 0; foreach(MapObjectList, o, mMapObjects) { o->setAlpha(getOpacity(o->pos())); o->draw(); }