project_files/HedgewarsMobile/Classes/MapConfigViewController.h
author nemo
Thu, 01 Jul 2010 18:29:57 -0400
changeset 3606 dec996dd7d02
parent 3547 02875b1145b7
child 3642 fb39fecca350
permissions -rw-r--r--
Rename city to earthrise, replace old "earthrise" music w/ new City music on City/Planes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     1
//
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     2
//  MapConfigViewController.h
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     3
//  HedgewarsMobile
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     4
//
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     5
//  Created by Vittorio on 22/04/10.
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     6
//  Copyright 2010 __MyCompanyName__. All rights reserved.
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     7
//
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     8
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     9
#import <UIKit/UIKit.h>
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    10
#import "SDL_net.h"
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    11
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    12
@interface MapConfigViewController : UIViewController <UITableViewDelegate, UITableViewDataSource> {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    13
    TCPsocket sd, csd;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    14
    NSInteger oldValue;  //slider
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    15
    NSInteger oldPage;   //segmented control
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    16
    BOOL busy;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    17
    
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    18
    // objects read (mostly) by parent view
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    19
    NSInteger maxHogs;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    20
    NSString *seedCommand;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    21
    NSString *templateFilterCommand;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    22
    NSString *mapGenCommand;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    23
    NSString *mazeSizeCommand;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    24
    NSString *themeCommand;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    25
   
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    26
    // various widgets in the view
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    27
    UIButton *previewButton;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    28
    UITableView *tableView;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    29
    UILabel *maxLabel;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    30
    UILabel *sizeLabel;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    31
    UISegmentedControl *segmentedControl;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    32
    UISlider *slider;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    33
    
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    34
    // internal objects
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    35
    NSIndexPath *lastIndexPath;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    36
    NSArray *themeArray;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    37
    NSArray *mapArray;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    38
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    39
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    40
@property (nonatomic) NSInteger maxHogs;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    41
@property (nonatomic) BOOL busy;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    42
@property (nonatomic,retain) NSString *seedCommand;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    43
@property (nonatomic,retain) NSString *templateFilterCommand;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    44
@property (nonatomic,retain) NSString *mapGenCommand;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    45
@property (nonatomic,retain) NSString *mazeSizeCommand;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    46
@property (nonatomic,retain) NSString *themeCommand;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    47
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    48
@property (nonatomic,retain) IBOutlet UIButton *previewButton;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    49
@property (nonatomic,retain) IBOutlet UITableView *tableView;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    50
@property (nonatomic,retain) IBOutlet UILabel *maxLabel;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    51
@property (nonatomic,retain) IBOutlet UILabel *sizeLabel;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    52
@property (nonatomic,retain) IBOutlet UISegmentedControl *segmentedControl;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    53
@property (nonatomic,retain) IBOutlet UISlider *slider;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    54
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    55
@property (nonatomic,retain) NSIndexPath *lastIndexPath;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    56
@property (nonatomic,retain) NSArray *themeArray;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    57
@property (nonatomic,retain) NSArray *mapArray;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    58
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    59
-(IBAction) updatePreview;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    60
-(IBAction) sliderChanged:(id) sender;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    61
-(IBAction) sliderEndedChanging:(id) sender;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    62
-(IBAction) segmentedControlChanged:(id) sender;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    63
-(void) turnOnWidgets;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    64
-(void) turnOffWidgets;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    65
-(void) setLabelText:(NSString *)str;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    66
-(void) setButtonImage:(UIImage *)img;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    67
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    68
-(const uint8_t *)engineProtocol:(NSInteger) port;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    69
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    70
@end