Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Side by Side Diff: nacltoons/src/ui_layer.h

Issue 12579005: [nacltoons] Rename core classes in accordance with doc. (Closed) Base URL: https://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « nacltoons/src/physics_layer.cc ('k') | nacltoons/src/ui_layer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 #ifndef GAMEPLAY_SCENE_H_ 4 #ifndef UI_LAYER_H_
5 #define GAMEPLAY_SCENE_H_ 5 #define UI_LAYER_H_
6 6
7 #include "cocos2d.h" 7 #include "cocos2d.h"
8 8
9 USING_NS_CC; 9 USING_NS_CC;
10 10
11 /** 11 /**
12 * Main gameplay scene containing the physics layer
13 * that the user can interact with and a UI layer over
14 * the top for menus.
15 */
16 class GameplayScene : public CCScene {
17 public:
18 GameplayScene(int level_number) : level_number_(level_number) {}
19 ~GameplayScene() {}
20 static GameplayScene* create(int level_number);
21 virtual bool init();
22 void Restart();
23 void GameOver(bool success);
24 private:
25 int level_number_;
26 };
27
28 /**
29 * UI layer for displaying menu and information overlays on 12 * UI layer for displaying menu and information overlays on
30 * top of the running game. 13 * top of the running game.
31 */ 14 */
32 class UILayer : public CCLayer { 15 class UILayer : public CCLayer {
33 public: 16 public:
34 UILayer() {} 17 UILayer() {}
35 ~UILayer() {} 18 ~UILayer() {}
36 // add static create() method which encapsulates new + init 19 // add static create() method which encapsulates new + init
37 CREATE_FUNC(UILayer); 20 CREATE_FUNC(UILayer);
38 virtual bool init(); 21 virtual bool init();
39 22
40 private: 23 private:
41 // menu callbacks 24 // menu callbacks
42 void ToggleDebug(CCObject* sender); 25 void ToggleDebug(CCObject* sender);
43 void Restart(CCObject* sender); 26 void Restart(CCObject* sender);
44 void Exit(CCObject* sender); 27 void Exit(CCObject* sender);
45 }; 28 };
46 29
47 #endif // GAMEPLAY_SCENE_H_ 30 #endif // UI_LAYER_H_
OLDNEW
« no previous file with comments | « nacltoons/src/physics_layer.cc ('k') | nacltoons/src/ui_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698