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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
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 FRONTEND_H_ 4 #ifndef FRONTEND_H_
5 #define FRONTEND_H_ 5 #define FRONTEND_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 * Front end scene and layer. 12 * Scene for displaying the frontend menu system.
13 * From here the user can start a new game, view achviements, etc.
13 */ 14 */
14 class FrontEnd : public CCLayerColor { 15 class FrontEndScene : public CCScene {
15 public: 16 public:
16 FrontEnd() {} 17 FrontEndScene() {}
17 ~FrontEnd() {} 18 // add static create() method which encapsulates new + init
18 CREATE_FUNC(FrontEnd); 19 CREATE_FUNC(FrontEndScene);
19 virtual bool init(); 20 virtual bool init();
20 static CCScene* scene(); 21 };
22
23 /**
24 * Layer that displays the frontend menu for the game.
25 */
26 class FrontEndLayer : public CCLayerColor {
27 public:
28 FrontEndLayer() {}
29 ~FrontEndLayer() {}
30
31 // add static create() method which encapsulates new + init
32 CREATE_FUNC(FrontEndLayer);
33 virtual bool init();
21 34
22 private: 35 private:
23 // menu callbacks 36 // menu callbacks
24 void StartGame(CCObject* sender); 37 void StartGame(CCObject* sender);
25 }; 38 };
26 39
27 #endif // !FRONTEND_H_ 40 #endif // FRONTEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698