-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGame.h
81 lines (64 loc) · 1.77 KB
/
Game.h
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
//
// Game.h
// White Tiles
//
// Created by Kyle Ju on 2014-09-13.
// Copyright (c) 2014 Kyle Ju. All rights reserved.
//
#import <UIKit/UIKit.h>
int Row1BlackTile;
int Row2BlackTile;
int Row3BlackTile;
int Row4BlackTile;
int Row5BlackTile;
int RowNumber;
int ScoreNumber;
float TimeNumber;
NSInteger HighScoreNumber;
@interface Game : UIViewController
{
IBOutlet UIImageView *Row1Tile1;
IBOutlet UIImageView *Row1Tile2;
IBOutlet UIImageView *Row1Tile3;
IBOutlet UIImageView *Row1Tile4;
IBOutlet UIImageView *Row2Tile1;
IBOutlet UIImageView *Row2Tile2;
IBOutlet UIImageView *Row2Tile3;
IBOutlet UIImageView *Row2Tile4;
IBOutlet UIImageView *Row3Tile1;
IBOutlet UIImageView *Row3Tile2;
IBOutlet UIImageView *Row3Tile3;
IBOutlet UIImageView *Row3Tile4;
IBOutlet UIImageView *Row4Tile1;
IBOutlet UIImageView *Row4Tile2;
IBOutlet UIImageView *Row4Tile3;
IBOutlet UIImageView *Row4Tile4;
IBOutlet UIImageView *Row5Tile1;
IBOutlet UIImageView *Row5Tile2;
IBOutlet UIImageView *Row5Tile3;
IBOutlet UIImageView *Row5Tile4;
IBOutlet UIButton *Start;
IBOutlet UIButton *Button1;
IBOutlet UIButton *Button2;
IBOutlet UIButton *Button3;
IBOutlet UIButton *Button4;
IBOutlet UILabel *ScoreLabel;
IBOutlet UILabel *TimeLabel;
IBOutlet UIButton *Exit;
NSTimer *Timer;
}
-(IBAction)RowDown1:(id)sender;
-(IBAction)RowDown2:(id)sender;
-(IBAction)RowDown3:(id)sender;
-(IBAction)RowDown4:(id)sender;
-(IBAction)StartGmae:(id)sender;
-(void)PlaceRow1BlackTile;
-(void)PlaceRow2BlackTile;
-(void)PlaceRow3BlackTile;
-(void)PlaceRow4BlackTile;
-(void)PlaceRow5BlackTile;
-(void)TileMoveDown;
-(void)Score;
-(void)TimerCountDown;
-(void)GameOver;
@end