

////////////////////////////////////////////////////////////////////////
// Performance snippet
////////////////////////////////////////////////////////////////////////
CFTimeInterval start = CACurrentMediaTime();

// DO STUFF

CFTimeInterval end = CACurrentMediaTime();
NSLog(@"Took:%f",(end - start));

////////////////////////////////////////////////////////////////////////
// Promote an ability
////////////////////////////////////////////////////////////////////////
AbilityLevel* abilityLevel2  = [[GameFactory sharedUserManager].userGolfer.abilities getAbility:ABILITY_TODO_SB_2];
[abilityLevel2 addExp:100];
[abilityLevel2 promote];
[abilityLevel2 promote];
[abilityLevel2 promote];

////////////////////////////////////////////////////////////////////////
// File Download/import
////////////////////////////////////////////////////////////////////////
[self displayPopup:[GameViewFactory popupDownloadWithURL:@"http://lazyboydevelopments.com/gamedata/GolfSuperstar2/Data/Formula1.zip"
                             destPath:[[FileHelper getDownloadFolder] stringByAppendingPathComponent:@"Data.zip"]
                       completedBlock:^{
    
    [[GameFactory sharedUserManager].gameData importDataFile:@"Data.zip"];
}]];


////////////////////////////////////////////////////////////////////////
// View other player scorecards - paste into TourneyScoreboardViewController
////////////////////////////////////////////////////////////////////////

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    
    if (tableView == _tblScoreboard) {
        ScorecardPlayer* sp = [_sortedScores objectAtIndex:indexPath.row];
     
        ScorecardRound* round = [sp.rounds firstObject];
        for (int i=0; i < 18; i++) {
            int score = [round getHoleScore:i];
            NSLog(@"%d - %d", i+1, score);
        }
        
    }
}
