diff options
author | Starla Insigna <starla4444@gmail.com> | 2011-10-17 20:57:46 -0400 |
---|---|---|
committer | Starla Insigna <starla4444@gmail.com> | 2011-10-17 20:57:46 -0400 |
commit | 08cb72a92328cb0f38947fe5e8c5f23bab8cd0cc (patch) | |
tree | 7f08db53abebda90785398911a6ed2f08c972051 /Classes/GameMode.h | |
parent | 4d09a715397de91a66f3fbea0fe2b629f64b6e9a (diff) | |
download | cartcollect-08cb72a92328cb0f38947fe5e8c5f23bab8cd0cc.tar.gz cartcollect-08cb72a92328cb0f38947fe5e8c5f23bab8cd0cc.tar.bz2 cartcollect-08cb72a92328cb0f38947fe5e8c5f23bab8cd0cc.zip |
Added support for gyroscope-based movement v0.4.8
Closes #230
Diffstat (limited to 'Classes/GameMode.h')
-rw-r--r-- | Classes/GameMode.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Classes/GameMode.h b/Classes/GameMode.h index e82ad10..2fcf275 100644 --- a/Classes/GameMode.h +++ b/Classes/GameMode.h | |||
@@ -8,6 +8,7 @@ | |||
8 | 8 | ||
9 | #import "CCLayer.h" | 9 | #import "CCLayer.h" |
10 | #import "Cart.h" | 10 | #import "Cart.h" |
11 | #import <CoreMotion/CoreMotion.h> | ||
11 | 12 | ||
12 | #define GAME_SCENE 436 | 13 | #define GAME_SCENE 436 |
13 | #define GAME_LAYER 437 | 14 | #define GAME_LAYER 437 |
@@ -28,6 +29,10 @@ | |||
28 | void (^delayedAction)(void); | 29 | void (^delayedAction)(void); |
29 | 30 | ||
30 | BOOL isPaused; | 31 | BOOL isPaused; |
32 | |||
33 | BOOL hasGyroscope; | ||
34 | double pitch; | ||
35 | CMMotionManager* motionManager; | ||
31 | } | 36 | } |
32 | 37 | ||
33 | @property (readonly) Cart* cart; | 38 | @property (readonly) Cart* cart; |
@@ -43,5 +48,6 @@ | |||
43 | - (void)mainmenu; | 48 | - (void)mainmenu; |
44 | - (void)scheduleDelayedAction:(void(^)(void))delayedAction delay:(float)delay; | 49 | - (void)scheduleDelayedAction:(void(^)(void))delayedAction delay:(float)delay; |
45 | - (void)runDelayedAction; | 50 | - (void)runDelayedAction; |
51 | - (void)setPitch:(double)m_pitch; | ||
46 | 52 | ||
47 | @end | 53 | @end |