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

Unified Diff: nacltoons/src/frontend.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/frontend.h
diff --git a/nacltoons/src/frontend.h b/nacltoons/src/frontend.h
index d77576db7ca50b526db112318fc421549114987c..ea6a8a2c753bc18b8e736bfcb566fbc3b9e20232 100644
--- a/nacltoons/src/frontend.h
+++ b/nacltoons/src/frontend.h
@@ -9,19 +9,32 @@
USING_NS_CC;
/**
- * Front end scene and layer.
+ * Scene for displaying the frontend menu system.
+ * From here the user can start a new game, view achviements, etc.
*/
-class FrontEnd : public CCLayerColor {
+class FrontEndScene : public CCScene {
public:
- FrontEnd() {}
- ~FrontEnd() {}
- CREATE_FUNC(FrontEnd);
+ FrontEndScene() {}
+ // add static create() method which encapsulates new + init
+ CREATE_FUNC(FrontEndScene);
+ virtual bool init();
+};
+
+/**
+ * Layer that displays the frontend menu for the game.
+ */
+class FrontEndLayer : public CCLayerColor {
+ public:
+ FrontEndLayer() {}
+ ~FrontEndLayer() {}
+
+ // add static create() method which encapsulates new + init
+ CREATE_FUNC(FrontEndLayer);
virtual bool init();
- static CCScene* scene();
private:
// menu callbacks
void StartGame(CCObject* sender);
};
-#endif // !FRONTEND_H_
+#endif // FRONTEND_H_

Powered by Google App Engine
This is Rietveld 408576698