| 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_
|
|
|