equal
deleted
inserted
replaced
7 // |
7 // |
8 |
8 |
9 #import <UIKit/UIKit.h> |
9 #import <UIKit/UIKit.h> |
10 #import "SDL_net.h" |
10 #import "SDL_net.h" |
11 |
11 |
|
12 @protocol MapConfigDelegate <NSObject> |
|
13 |
|
14 -(void) buttonPressed:(id) sender; |
|
15 |
|
16 @end |
|
17 |
|
18 |
12 @interface MapConfigViewController : UIViewController <UITableViewDelegate, UITableViewDataSource> { |
19 @interface MapConfigViewController : UIViewController <UITableViewDelegate, UITableViewDataSource> { |
|
20 id<MapConfigDelegate> delegate; |
|
21 |
13 TCPsocket sd, csd; |
22 TCPsocket sd, csd; |
14 NSInteger oldValue; //slider |
23 NSInteger oldValue; //slider |
15 NSInteger oldPage; //segmented control |
24 NSInteger oldPage; //segmented control |
16 BOOL busy; |
25 BOOL busy; |
17 |
26 |
36 NSIndexPath *lastIndexPath; |
45 NSIndexPath *lastIndexPath; |
37 NSArray *themeArray; |
46 NSArray *themeArray; |
38 NSArray *mapArray; |
47 NSArray *mapArray; |
39 } |
48 } |
40 |
49 |
|
50 @property (nonatomic,retain) id<MapConfigDelegate> delegate; |
|
51 |
41 @property (nonatomic) NSInteger maxHogs; |
52 @property (nonatomic) NSInteger maxHogs; |
42 @property (nonatomic) BOOL busy; |
53 @property (nonatomic) BOOL busy; |
43 @property (nonatomic,retain) NSString *seedCommand; |
54 @property (nonatomic,retain) NSString *seedCommand; |
44 @property (nonatomic,retain) NSString *templateFilterCommand; |
55 @property (nonatomic,retain) NSString *templateFilterCommand; |
45 @property (nonatomic,retain) NSString *mapGenCommand; |
56 @property (nonatomic,retain) NSString *mapGenCommand; |
56 |
67 |
57 @property (nonatomic,retain) NSIndexPath *lastIndexPath; |
68 @property (nonatomic,retain) NSIndexPath *lastIndexPath; |
58 @property (nonatomic,retain) NSArray *themeArray; |
69 @property (nonatomic,retain) NSArray *themeArray; |
59 @property (nonatomic,retain) NSArray *mapArray; |
70 @property (nonatomic,retain) NSArray *mapArray; |
60 |
71 |
|
72 -(IBAction) buttonPressed:(id) sender; |
|
73 |
61 -(IBAction) updatePreview; |
74 -(IBAction) updatePreview; |
62 -(IBAction) sliderChanged:(id) sender; |
75 -(IBAction) sliderChanged:(id) sender; |
63 -(IBAction) sliderEndedChanging:(id) sender; |
76 -(IBAction) sliderEndedChanging:(id) sender; |
64 -(IBAction) segmentedControlChanged:(id) sender; |
77 -(IBAction) segmentedControlChanged:(id) sender; |
|
78 |
65 -(void) turnOnWidgets; |
79 -(void) turnOnWidgets; |
66 -(void) turnOffWidgets; |
80 -(void) turnOffWidgets; |
67 -(void) setLabelText:(NSString *)str; |
81 -(void) setLabelText:(NSString *)str; |
68 -(void) setButtonImage:(UIImage *)img; |
82 -(void) setButtonImage:(UIImage *)img; |
69 |
83 |