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

Side by Side Diff: nacltoons/src/PhysicsLayer.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4 #ifndef PHYSICS_LAYER_H
5 #define PHYSICS_LAYER_H
6
7 #include "cocos2d.h"
8 #include "Box2D/Box2D.h"
9
10 USING_NS_CC;
11
12 /**
13 * Physics layer that the user interacts with.
14 */
15 class PhysicsLayer : public CCLayerColor {
16 public:
17 PhysicsLayer() {}
18 ~PhysicsLayer();
19 CREATE_FUNC(PhysicsLayer);
20 virtual bool init();
21 virtual void ccTouchesEnded(CCSet* touches, CCEvent* event);
22
23 private:
24 void addNewSpriteAtPosition(CCPoint p);
binji 2013/02/12 23:13:25 MixedCase these three
Sam Clegg 2013/02/12 23:22:36 Done.
25 void updateWorld(float dt);
26 bool initPhysics();
27
28 CCTexture2D* sprite_texture_;
29 b2World* world_;
30 };
31
32 #endif // !PHYSICS_LAYER_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698