about summary refs log tree commit diff stats
path: root/data/maps/the_parthenon/rooms/Ending.txtpb
blob: c14ab78a57d833a36ef81e5a07aa5241b5c0fcff (plain) (blame)
1
2
3
name: "Ending"
display_name: "Parthenon"
# TODO: Cyan Ending
color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
//
//  GameMode.h
//  Cart Collect
//
//  Created by Starla Insigna on 8/9/11.
//  Copyright 2011 Four Island. All rights reserved.
//

#import "CCLayer.h"
#import "Cart.h"
#import "FallingObjectFactory.h"
#import "GameModeInfo.h"
#import <CoreMotion/CoreMotion.h>

#define GAME_SCENE 436
#define GAME_LAYER 437

@interface GameMode : CCLayer <UIAlertViewDelegate, CartDelegate, CCStandardTouchDelegate> {
    NSMutableSet* objects;
	int score;
	int lives;
    int pointMultiplier;
    Cart* cart;
    FallingObjectFactory* objectFactory;
    
    CCLayerColor* willPauseLayer;
    CCLayerColor* shadedLayer;
    CCLayer* pauseLayer;
    BOOL isPaused;
    BOOL isPausing;
    
    CCLabelBMFont* scoreLabel;
	CCLabelBMFont* livesLabel;
    
    void (^delayedAction)(void);
    
    BOOL hasGyroscope;
    double pitch;
    CMMotionManager* motionManager;
    
    BOOL isGesturing;
    CGPoint gestureStartPoint;
}

@property (readonly) Cart* cart;
@property (nonatomic,assign) int score;
@property (nonatomic,assign) int lives;
@property (nonatomic,assign) int pointMultiplier;
@property (readonly) BOOL isPaused;
- (void)tick:(ccTime)dt;
- (BOOL)canPause;
- (void)pause;
- (void)unpause;
- (void)mainmenu;
- (void)scheduleDelayedAction:(void(^)(void))delayedAction delay:(float)delay;
- (void)runDelayedAction;
+ (GameModeInfo*)info;
- (void)setPitch:(double)m_pitch;

@end