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

Unified Diff: nacltoons/src/level_layer.h

Issue 12579005: [nacltoons] Rename core classes in accordance with doc. (Closed) Base URL: https://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: Created 7 years, 9 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/level_layer.h
diff --git a/nacltoons/src/physics_layer.h b/nacltoons/src/level_layer.h
similarity index 89%
rename from nacltoons/src/physics_layer.h
rename to nacltoons/src/level_layer.h
index d2e8013360a36e3eabefe76b6eb385ee93c1db6d..125fa934f2901f7ab722c9c44336f228882eb597 100644
--- a/nacltoons/src/physics_layer.h
+++ b/nacltoons/src/level_layer.h
@@ -1,8 +1,8 @@
// 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 PHYSICS_LAYER_H_
-#define PHYSICS_LAYER_H_
+#ifndef LEVEL_LAYER_H_
+#define LEVEL_LAYER_H_
#include "cocos2d.h"
#include "CCLuaStack.h"
@@ -17,14 +17,15 @@ USING_NS_CC;
typedef std::vector<cocos2d::CCPoint> PointList;
/**
- * Physics layer that the user interacts with.
+ * Layer layer in which gameplay takes place. This layer contains
noelallen1 2013/03/09 01:20:37 Level
Sam Clegg 2013/03/09 01:35:13 Done.
+ * the box2d world simulation.
*/
-class PhysicsLayer : public CCLayerColor, public b2ContactListener {
+class LevelLayer : public CCLayerColor, public b2ContactListener {
public:
- PhysicsLayer(int level_number);
- ~PhysicsLayer();
+ LevelLayer(int level_number);
+ ~LevelLayer();
- static PhysicsLayer* create(int level_number);
+ static LevelLayer* create(int level_number);
virtual bool init();
virtual void draw();
@@ -112,4 +113,4 @@ class PhysicsLayer : public CCLayerColor, public b2ContactListener {
CCLuaStack* lua_stack_;
};
-#endif // PHYSICS_LAYER_H_
+#endif // LEVEL_LAYER_H_

Powered by Google App Engine
This is Rietveld 408576698