bool PauseLayer::init() { do { CC_BREAK_IF(!CCLayer::init()); SimpleAudioEngine::sharedEngine()->pauseBackgroundMusic(); setTouchEnabled(true); initBgLayer(); initMenu(); return true; } while (0); return false; }
/** * @brief Map::initLayers calls for every init<Layername> function; the calling order determines * the layers' superposition order * @param addToDb wether the layer should be added to the Db or not */ void Map::initLayers(bool addToDb) { initBgLayer(addToDb); initMapLayer(addToDb); initFoWLayer(addToDb); initDrawingLayer(addToDb); }