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

Unified Diff: nacltoons/src/gameplay_scene.h

Issue 12220140: [nacltoons] Cleanup initial game code. (Closed) Base URL: https://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: nacltoons/src/gameplay_scene.h
diff --git a/nacltoons/src/gameplay_scene.h b/nacltoons/src/gameplay_scene.h
index aa59eea08483a1ea55315065f81d95a42d4a4a45..a90f6d55d579ecb2c8180fd03bf2701d420b69ab 100644
--- a/nacltoons/src/gameplay_scene.h
+++ b/nacltoons/src/gameplay_scene.h
@@ -13,23 +13,25 @@ USING_NS_CC;
* that the user can interact with and a UI layer over
* the top for menus.
*/
-class Gameplay : public CCScene {
+class GameplayScene : public CCScene {
public:
- Gameplay() {}
- ~Gameplay() {}
- CREATE_FUNC(Gameplay);
+ GameplayScene() {}
+ ~GameplayScene() {}
+ // add static create() method which encapsulates new + init
+ CREATE_FUNC(GameplayScene);
virtual bool init();
void Restart();
- static CCScene* scene();
};
/**
- * UI layer for menus.
+ * UI layer for displaying menu and information overlays on
+ * top of the running game.
*/
class UILayer : public CCLayer {
public:
UILayer() {}
~UILayer() {}
+ // add static create() method which encapsulates new + init
CREATE_FUNC(UILayer);
virtual bool init();
@@ -39,4 +41,4 @@ class UILayer : public CCLayer {
void Exit(CCObject* sender);
};
-#endif // !GAMEPLAY_SCENE_H_
+#endif // GAMEPLAY_SCENE_H_

Powered by Google App Engine
This is Rietveld 408576698