lib/level-controllers/file-level-controller.js
function(config) {
    var filePath = null;
    
    if(config.levelControllerConfig && config.levelControllerConfig.fileName) {
        filePath = path.join(_getLevelDir(config), config.levelControllerConfig.fileName);        
    } else {
        throw Errors.invalidConfig('Invalid configuration. Level controller file name not defined.');
    }
    return filePath;
}
function(config) {
    var filePath = null;
    
    if(config.levelControllerConfig && config.levelControllerConfig.fileName) {
        filePath = path.join(_getLevelDir(config), config.levelControllerConfig.fileName);        
    } else {
        throw Errors.invalidConfig('Invalid configuration. Level controller file name not defined.');
    }
    return filePath;
}
function ( config ) { var filePath = null ; if ( config . levelControllerConfig && config . levelControllerConfig . fileName ) { filePath = path . join ( _getLevelDir ( config ) , config . levelControllerConfig . fileName ) ; } else { throw Errors . invalidConfig ( 'Invalid configuration. Level controller file name not defined.' ) ; } return filePath ; }
Get level file path
@param config
@result string
@throws Error
Get level file path