1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
//  iTennisViewController.h
//  iTennis
//
//  Created by Brandon Trebitowski on 1/14/09.
//  Copyright __MyCompanyName__ 2009. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface iTennisViewController : UIViewController {
  IBOutlet UIImageView *ball;
  IBOutlet UIImageView *racquet_yellow;
  IBOutlet UIImageView *racquet_green;
  IBOutlet UILabel     *tapToBegin;

  IBOutlet UILabel *player_score;
  IBOutlet UILabel *computer_score;

  CGPoint ballVelocity;

  NSInteger gameState;

  NSInteger player_score_value;
  NSInteger computer_score_value;
}

@property(nonatomic,retain) IBOutlet UIImageView *ball;
@property(nonatomic,retain) IBOutlet UIImageView *racquet_green;
@property(nonatomic,retain) IBOutlet UIImageView *racquet_yellow;
@property(nonatomic,retain) IBOutlet UILabel     *tapToBegin;

@property(nonatomic,retain) IBOutlet UILabel *player_score;
@property(nonatomic,retain) IBOutlet UILabel *computer_score;

@property(nonatomic) CGPoint ballVelocity;
@property(nonatomic) NSInteger gameState;

-(void)reset:(BOOL) newGame;

@end