Skip to content

Instantly share code, notes, and snippets.

Created June 26, 2011 16:42
Show Gist options
  • Save anonymous/32a13d2b1a95fe0f7ee5 to your computer and use it in GitHub Desktop.
Save anonymous/32a13d2b1a95fe0f7ee5 to your computer and use it in GitHub Desktop.
#import <UIKit/UIKit.h>
#import "Cell.h"
#import "Board.h"
#import "MainBoard.h"
#import "OponentsViewController.h"
#import "InstructionsViewController.h"
@interface GameViewController : UIViewController </*MainBoardDelegate,*/ OponentsViewControllerDelegate, InstructionsViewControllerDelegate, UIActionSheetDelegate, UIAlertViewDelegate, UIImagePickerControllerDelegate, UINavigationControllerDelegate>
@property (nonatomic, retain) MainBoard *board;
@property (nonatomic, retain) OponentsViewController *oponentsViewController;
@property (nonatomic, retain) InstructionsViewController *instructionsViewController;
@property (nonatomic, retain) UIImagePickerController *imgPicker;
@property (nonatomic, retain) IBOutlet UIView *gameView;
@property (nonatomic, retain) IBOutlet UILabel *humanScore;
@property (nonatomic, retain) IBOutlet UILabel *computerScore;
@property (nonatomic, retain) IBOutlet UILabel *computerLabel;
@property (nonatomic, retain) IBOutlet UIImageView *humanPortrait;
@property (nonatomic, retain) IBOutlet UIImageView *computerPortrait;
@property (nonatomic, retain) IBOutlet UIButton *changeLevelBtn;
@property (nonatomic, retain) IBOutlet UIButton *instructionsBtn;
@property (nonatomic, retain) NSMutableArray *boardMatrix;
@property (nonatomic, retain) NSMutableArray *pieceMatrix;
- (void)buildGameState;
- (void)buildBoardMatrix;
- (void)buildPieceMatrix;
- (void)initImgPicker;
- (void)initOponentsViewController;
- (void)initInstructionsViewController;
- (void)updateScores;
- (void)changeLevel:(int)level;
- (IBAction)startOver;
- (IBAction)saveGame;
- (IBAction)choosePhoto;
- (IBAction)toggleOponentsModal;
- (IBAction)toggleInstructionsModal;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment