Created
January 31, 2013 13:34
-
-
Save anonymous/4682903 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <UIKit/UIKit.h> | |
#import <GameKit/GameKit.h> | |
@interface PGViewController : UIViewController<UIAccelerometerDelegate,GKPeerPickerControllerDelegate,GKSessionDelegate>{ | |
GKSession *currentSession; | |
int gameUniqueID; | |
IBOutlet UIImageView *player; | |
IBOutlet UIButton *connect; | |
IBOutlet UIButton *disconnect; | |
IBOutlet UIImageView *one; | |
IBOutlet UIImageView *two; | |
IBOutlet UILabel *ones; | |
IBOutlet UILabel *twos; | |
IBOutlet UILabel *server; | |
NSTimer *randomMain; | |
CGPoint ballPos; | |
} | |
@property (retain, nonatomic) GKSession *currentSession; | |
@property (retain, nonatomic) UIButton *connect; | |
@property (retain, nonatomic) UIButton *disconnect; | |
- (IBAction)btnConnect:(id)sender; | |
- (IBAction)btnDisconnect:(id)sender; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment