project_files/HedgewarsMobile/Classes/SingleTeamViewController.m
changeset 3926 668b71f31e51
parent 3924 2a9ace189288
child 3948 24daa33a3114
equal deleted inserted replaced
3924:2a9ace189288 3926:668b71f31e51
    26 #import "FortsViewController.h"
    26 #import "FortsViewController.h"
    27 #import "FlagsViewController.h"
    27 #import "FlagsViewController.h"
    28 #import "LevelViewController.h"
    28 #import "LevelViewController.h"
    29 #import "CommodityFunctions.h"
    29 #import "CommodityFunctions.h"
    30 #import "UIImageExtra.h"
    30 #import "UIImageExtra.h"
       
    31 #import "PascalImports.h"
    31 
    32 
    32 #define TEAMNAME_TAG 78789
    33 #define TEAMNAME_TAG 78789
    33 
    34 
    34 @implementation SingleTeamViewController
    35 @implementation SingleTeamViewController
    35 @synthesize teamDictionary, normalHogSprite, secondaryItems, moreSecondaryItems, teamName;
    36 @synthesize teamDictionary, normalHogSprite, secondaryItems, moreSecondaryItems, teamName;
   146     switch (section) {
   147     switch (section) {
   147         case 0: // team name
   148         case 0: // team name
   148             rows = 1;
   149             rows = 1;
   149             break;
   150             break;
   150         case 1: // team members
   151         case 1: // team members
   151             rows = MAX_HOGS;
   152             rows = HW_getMaxNumberOfHogs();
   152             break;
   153             break;
   153         case 2: // team details
   154         case 2: // team details
   154             rows = [self.secondaryItems count];
   155             rows = [self.secondaryItems count];
   155             break;
   156             break;
   156         default:
   157         default: