author | koda |
Mon, 26 Apr 2010 01:55:26 +0000 | |
changeset 3369 | c7289e42f0ee |
parent 3365 | 37ac593e9027 |
child 3373 | c1ff724a5c34 |
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]; |
37ac593e9027
wow all these files only for land preview and seed generation
koda
parents:
diff
changeset
|
15 |
|
3369
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
16 |
// objects read (mostly) by parent view |
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
17 |
NSInteger maxHogs; |
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
18 |
NSString *seedCommand; |
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
19 |
NSString *templateFilterCommand; |
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
20 |
NSString *mapGenCommand; |
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
21 |
NSString *mazeSizeCommand; |
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
22 |
|
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
23 |
// various widgets in the view |
3365
37ac593e9027
wow all these files only for land preview and seed generation
koda
parents:
diff
changeset
|
24 |
UIButton *previewButton; |
3369
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
25 |
UITableView *tableView; |
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
26 |
UILabel *maxLabel; |
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
27 |
UILabel *sizeLabel; |
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
28 |
UISegmentedControl *segmentedControl; |
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
29 |
UISlider *slider; |
3365
37ac593e9027
wow all these files only for land preview and seed generation
koda
parents:
diff
changeset
|
30 |
} |
37ac593e9027
wow all these files only for land preview and seed generation
koda
parents:
diff
changeset
|
31 |
|
37ac593e9027
wow all these files only for land preview and seed generation
koda
parents:
diff
changeset
|
32 |
@property (nonatomic) NSInteger maxHogs; |
37ac593e9027
wow all these files only for land preview and seed generation
koda
parents:
diff
changeset
|
33 |
@property (nonatomic,retain) NSString *seedCommand; |
3369
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
34 |
@property (nonatomic,retain) NSString *templateFilterCommand; |
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
35 |
@property (nonatomic,retain) NSString *mapGenCommand; |
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
36 |
@property (nonatomic,retain) NSString *mazeSizeCommand; |
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
37 |
@property (nonatomic,retain) IBOutlet UIButton *previewButton; |
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
38 |
@property (nonatomic,retain) IBOutlet UITableView *tableView; |
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
39 |
@property (nonatomic,retain) IBOutlet UILabel *maxLabel; |
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
40 |
@property (nonatomic,retain) IBOutlet UILabel *sizeLabel; |
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
41 |
@property (nonatomic,retain) IBOutlet UISegmentedControl *segmentedControl; |
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
42 |
@property (nonatomic,retain) IBOutlet UISlider *slider; |
3365
37ac593e9027
wow all these files only for land preview and seed generation
koda
parents:
diff
changeset
|
43 |
|
37ac593e9027
wow all these files only for land preview and seed generation
koda
parents:
diff
changeset
|
44 |
-(IBAction) updatePreview; |
3369
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
45 |
-(IBAction) sliderChanged:(id) sender; |
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
46 |
-(IBAction) sliderEndedChanging:(id) sender; |
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
47 |
-(IBAction) segmentedControlChanged:(id) sender; |
c7289e42f0ee
add other controls for map preview, also fix a bug in digest
koda
parents:
3365
diff
changeset
|
48 |
|
3365
37ac593e9027
wow all these files only for land preview and seed generation
koda
parents:
diff
changeset
|
49 |
-(void) engineProtocol:(NSInteger) port; |
37ac593e9027
wow all these files only for land preview and seed generation
koda
parents:
diff
changeset
|
50 |
|
37ac593e9027
wow all these files only for land preview and seed generation
koda
parents:
diff
changeset
|
51 |
@end |