author | smxx |
Sat, 01 May 2010 20:48:39 +0000 | |
changeset 3393 | 595655a09b26 |
parent 3373 | c1ff724a5c34 |
child 3490 | 016b3172b645 |
permissions | -rw-r--r-- |
3365
37ac593e9027
wow all these files only for land preview and seed generation
koda
parents:
diff
changeset
|
1 |
// |
37ac593e9027
wow all these files only for land preview and seed generation
koda
parents:
diff
changeset
|
2 |
// MapConfigViewController.h |
37ac593e9027
wow all these files only for land preview and seed generation
koda
parents:
diff
changeset
|
3 |
// HedgewarsMobile |
37ac593e9027
wow all these files only for land preview and seed generation
koda
parents:
diff
changeset
|
4 |
// |
37ac593e9027
wow all these files only for land preview and seed generation
koda
parents:
diff
changeset
|
5 |
// Created by Vittorio on 22/04/10. |
37ac593e9027
wow all these files only for land preview and seed generation
koda
parents:
diff
changeset
|
6 |
// Copyright 2010 __MyCompanyName__. All rights reserved. |
37ac593e9027
wow all these files only for land preview and seed generation
koda
parents:
diff
changeset
|
7 |
// |
37ac593e9027
wow all these files only for land preview and seed generation
koda
parents:
diff
changeset
|
8 |
|
37ac593e9027
wow all these files only for land preview and seed generation
koda
parents:
diff
changeset
|
9 |
#import <UIKit/UIKit.h> |
37ac593e9027
wow all these files only for land preview and seed generation
koda
parents:
diff
changeset
|
10 |
#import "SDL_net.h" |
37ac593e9027
wow all these files only for land preview and seed generation
koda
parents:
diff
changeset
|
11 |
|
3369
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
12 |
@interface MapConfigViewController : UIViewController <UITableViewDelegate, UITableViewDataSource> { |
3365
37ac593e9027
wow all these files only for land preview and seed generation
koda
parents:
diff
changeset
|
13 |
TCPsocket sd, csd; |
37ac593e9027
wow all these files only for land preview and seed generation
koda
parents:
diff
changeset
|
14 |
unsigned char map[128*32]; |
3373 | 15 |
NSInteger oldValue; //slider |
16 |
NSInteger oldPage; //segmented control |
|
17 |
BOOL busy; |
|
18 |
||
3369
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
19 |
// objects read (mostly) by parent view |
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
20 |
NSInteger maxHogs; |
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
21 |
NSString *seedCommand; |
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
22 |
NSString *templateFilterCommand; |
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
23 |
NSString *mapGenCommand; |
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
24 |
NSString *mazeSizeCommand; |
3373 | 25 |
NSString *themeCommand; |
3369
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
26 |
|
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
27 |
// various widgets in the view |
3365
37ac593e9027
wow all these files only for land preview and seed generation
koda
parents:
diff
changeset
|
28 |
UIButton *previewButton; |
3369
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
29 |
UITableView *tableView; |
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
30 |
UILabel *maxLabel; |
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
31 |
UILabel *sizeLabel; |
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
32 |
UISegmentedControl *segmentedControl; |
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
33 |
UISlider *slider; |
3373 | 34 |
|
35 |
// internal objects |
|
36 |
NSIndexPath *lastIndexPath; |
|
37 |
NSArray *themeArray; |
|
38 |
NSArray *mapArray; |
|
3365
37ac593e9027
wow all these files only for land preview and seed generation
koda
parents:
diff
changeset
|
39 |
} |
37ac593e9027
wow all these files only for land preview and seed generation
koda
parents:
diff
changeset
|
40 |
|
37ac593e9027
wow all these files only for land preview and seed generation
koda
parents:
diff
changeset
|
41 |
@property (nonatomic) NSInteger maxHogs; |
37ac593e9027
wow all these files only for land preview and seed generation
koda
parents:
diff
changeset
|
42 |
@property (nonatomic,retain) NSString *seedCommand; |
3369
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
43 |
@property (nonatomic,retain) NSString *templateFilterCommand; |
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
44 |
@property (nonatomic,retain) NSString *mapGenCommand; |
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
45 |
@property (nonatomic,retain) NSString *mazeSizeCommand; |
3373 | 46 |
@property (nonatomic,retain) NSString *themeCommand; |
47 |
||
3369
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
48 |
@property (nonatomic,retain) IBOutlet UIButton *previewButton; |
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
49 |
@property (nonatomic,retain) IBOutlet UITableView *tableView; |
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
50 |
@property (nonatomic,retain) IBOutlet UILabel *maxLabel; |
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
51 |
@property (nonatomic,retain) IBOutlet UILabel *sizeLabel; |
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
52 |
@property (nonatomic,retain) IBOutlet UISegmentedControl *segmentedControl; |
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
53 |
@property (nonatomic,retain) IBOutlet UISlider *slider; |
3365
37ac593e9027
wow all these files only for land preview and seed generation
koda
parents:
diff
changeset
|
54 |
|
3373 | 55 |
@property (nonatomic,retain) NSIndexPath *lastIndexPath; |
56 |
@property (nonatomic,retain) NSArray *themeArray; |
|
57 |
@property (nonatomic,retain) NSArray *mapArray; |
|
58 |
||
3365
37ac593e9027
wow all these files only for land preview and seed generation
koda
parents:
diff
changeset
|
59 |
-(IBAction) updatePreview; |
3369
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
60 |
-(IBAction) sliderChanged:(id) sender; |
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
61 |
-(IBAction) sliderEndedChanging:(id) sender; |
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
62 |
-(IBAction) segmentedControlChanged:(id) sender; |
3373 | 63 |
-(void) turnOnWidgets; |
64 |
-(void) turnOffWidgets; |
|
3369
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
65 |
|
3365
37ac593e9027
wow all these files only for land preview and seed generation
koda
parents:
diff
changeset
|
66 |
-(void) engineProtocol:(NSInteger) port; |
37ac593e9027
wow all these files only for land preview and seed generation
koda
parents:
diff
changeset
|
67 |
|
37ac593e9027
wow all these files only for land preview and seed generation
koda
parents:
diff
changeset
|
68 |
@end |