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

Unified Diff: nacltoons/src/FrontEnd.h

Issue 12226130: [nacltoons] Add initial frontend and physics game scenes. (Closed) Base URL: https://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: fix style nits 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
new file mode 100644
index 0000000000000000000000000000000000000000..9dc37d49bdf692f23f030f91c24bd9bdc6013409
--- /dev/null
+++ b/nacltoons/src/FrontEnd.h
@@ -0,0 +1,27 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+#ifndef FRONTEND_H
binji 2013/02/12 23:13:25 FRONTEND_H_
Sam Clegg 2013/02/12 23:22:36 Done.
+#define FRONTEND_H
+
+#include "cocos2d.h"
+
+USING_NS_CC;
+
+/**
+ * Front end scene and layer.
noelallen1 2013/02/12 23:35:52 Don't self reference in your doc. Tell us what th
+ */
+class FrontEnd : public CCLayerColor {
+ public:
+ FrontEnd() {}
+ ~FrontEnd() {}
+ CREATE_FUNC(FrontEnd);
noelallen1 2013/02/12 23:35:52 What is this macro for?
+ virtual bool init();
+ static CCScene* scene();
+
+ private:
+ // menu callbacks
+ virtual void startGame(CCObject* sender);
binji 2013/02/12 23:13:25 Is this defined in CCLayerColor or below? If not,
binji 2013/02/12 23:13:25 does this need to be virtual?
Sam Clegg 2013/02/12 23:22:36 Done.
Sam Clegg 2013/02/12 23:22:36 Done.
+};
+
+#endif // !FRONTEND_H
noelallen1 2013/02/12 23:35:52 !FRONTEND_H, did you mean to add the ! I think the

Powered by Google App Engine
This is Rietveld 408576698