Displays the User Interface the player can interact with during the game.
More...
#import <GameUI.h>
List of all members.
Public Member Functions |
(id) | - init |
| initializes class and returns an instance of the class, you must take care of allocating the object yourself
|
(void) | - showPauseGameDialog |
| brings up the pause game dialog, called by the GameScene.
|
(void) | - dealloc [implementation] |
(void) | - onPauseButton: [implementation] |
(void) | - alertView:clickedButtonAtIndex: [implementation] |
Static Public Member Functions |
(id) | + ui |
| initializes class and returns an autoreleased instance of the class
|
Detailed Description
Displays the User Interface the player can interact with during the game.
Typical use is to display a pause button which brings up the pause menu. Many line-drawing games also have a FastForward button as the early gameplay can be slow and experienced players like to speed things up until it gets "interesting" for them. The UI is drawn above everything else and touches to UI buttons override any touches to a MovingObject, so be sure that you place the UI buttons at the screen borders and make them small but not too small that they're too hard to touch correctly. Try Flight Control & Harbor Master as reference. The UI can also be used to draw a frame around the screen, if you like that. See Harbor Master as an example.
Member Function Documentation
- (void) alertView: |
|
(UIAlertView*) |
alertView |
clickedButtonAtIndex: |
|
(NSInteger) |
buttonIndex | |
|
|
| | [implementation] |
- (void) dealloc |
|
|
|
[implementation] |
initializes class and returns an instance of the class, you must take care of allocating the object yourself
- (void) onPauseButton: |
|
(id) |
sender |
|
[implementation] |
- (void) showPauseGameDialog |
|
|
|
|
brings up the pause game dialog, called by the GameScene.
Note: this will not automatically pause gameplay, it just displays the dialog. The actual pause/resume is done in GameScene.
initializes class and returns an autoreleased instance of the class
The documentation for this class was generated from the following files: