Back to project page hackfmi-ragdoll-physics.
The source code is released under:
GNU General Public License
If you think the Android project hackfmi-ragdoll-physics listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.midtownmadness.bubblecombat.game; /*from www . j a v a 2 s . co m*/ import org.jbox2d.dynamics.Body; import org.jbox2d.dynamics.BodyDef; import org.jbox2d.dynamics.FixtureDef; import android.graphics.Canvas; public abstract class GameObject { protected static int staticId = 0; protected int id; protected Body body; public GameObject() { id = staticId++; } public abstract void render(Canvas canvas); public abstract BodyDef buildBodyDef(); public abstract FixtureDef buildFixtureDef(); public void setBody(Body body) { this.body = body; } public Body getBody() { return body; } }