summary refs log tree commit diff stats
path: root/Classes/GameMode.h
diff options
context:
space:
mode:
Diffstat (limited to 'Classes/GameMode.h')
-rw-r--r--Classes/GameMode.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Classes/GameMode.h b/Classes/GameMode.h index cd41884..e208d49 100644 --- a/Classes/GameMode.h +++ b/Classes/GameMode.h
@@ -10,6 +10,7 @@
10#import "Cart.h" 10#import "Cart.h"
11#import "FallingObjectFactory.h" 11#import "FallingObjectFactory.h"
12#import "GameModeInfo.h" 12#import "GameModeInfo.h"
13#import <CoreMotion/CoreMotion.h>
13 14
14#define GAME_SCENE 436 15#define GAME_SCENE 436
15#define GAME_LAYER 437 16#define GAME_LAYER 437
@@ -31,6 +32,10 @@
31 void (^delayedAction)(void); 32 void (^delayedAction)(void);
32 33
33 BOOL isPaused; 34 BOOL isPaused;
35
36 BOOL hasGyroscope;
37 double pitch;
38 CMMotionManager* motionManager;
34} 39}
35 40
36@property (readonly) Cart* cart; 41@property (readonly) Cart* cart;
@@ -46,5 +51,6 @@
46- (void)scheduleDelayedAction:(void(^)(void))delayedAction delay:(float)delay; 51- (void)scheduleDelayedAction:(void(^)(void))delayedAction delay:(float)delay;
47- (void)runDelayedAction; 52- (void)runDelayedAction;
48+ (GameModeInfo*)info; 53+ (GameModeInfo*)info;
54- (void)setPitch:(double)m_pitch;
49 55
50@end 56@end