Public Member Functions | Protected Attributes | Properties

AppDelegate Class Reference

The Application Delegate which receives all the OS callbacks. More...

#import <AppDelegate.h>

List of all members.

Public Member Functions

(void) - setPauseDelegate:
(BOOL) - application:didFinishLaunchingWithOptions: [implementation]
 creates the UIWindow and initializes cocos2d
(void) - orientationChanged: [implementation]
 This method allows us to support both landscape orientations and orientation can be changed on the fly.
(void) - applicationWillResignActive: [implementation]
(void) - applicationDidBecomeActive: [implementation]
(void) - applicationDidReceiveMemoryWarning: [implementation]
(void) - applicationWillTerminate: [implementation]
(void) - applicationSignificantTimeChange: [implementation]
(void) - dealloc [implementation]

Protected Attributes

bool hasOrientationChangedBefore

Properties

UIWindow * window
bool isPlaying
bool isPaused
id< PauseDelegateProtocolpauseDelegate

Detailed Description

The Application Delegate which receives all the OS callbacks.


Member Function Documentation

- (BOOL) application: (UIApplication *)  application
didFinishLaunchingWithOptions: (NSDictionary *)  launchOptions 
[implementation]

creates the UIWindow and initializes cocos2d

- (void) applicationDidBecomeActive: (UIApplication*)  application   [implementation]
- (void) applicationDidReceiveMemoryWarning: (UIApplication*)  application   [implementation]
- (void) applicationSignificantTimeChange: (UIApplication*)  application   [implementation]
- (void) applicationWillResignActive: (UIApplication*)  application   [implementation]
- (void) applicationWillTerminate: (UIApplication*)  application   [implementation]
- (void) dealloc   [implementation]
- (void) orientationChanged: (NSNotification*)  notification   [implementation]

This method allows us to support both landscape orientations and orientation can be changed on the fly.

If you change this you should also modify UISupportedInterfaceOrientations in Info.plist.

- (void) setPauseDelegate: (id<PauseDelegateProtocol>)  delegate  

Member Data Documentation

- (bool) hasOrientationChangedBefore [protected]

Property Documentation

- (bool) isPaused [read, write, assign]
- (bool) isPlaying [read, write, assign]
- (id< PauseDelegateProtocol >) pauseDelegate [read, assign]
- (UIWindow *) window [read, write, retain]

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Enumerations Enumerator Properties