예제 #1
0
bool PauseLayer::init()
{
    do
    {
        CC_BREAK_IF(!CCLayer::init());
        SimpleAudioEngine::sharedEngine()->pauseBackgroundMusic();
        setTouchEnabled(true);
        initBgLayer();
        initMenu();
        return true;
    }
    while (0);
    return false;
}
예제 #2
0
파일: Map.cpp 프로젝트: Nepta/nixjdr
/**
 * @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);
}