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 ww w . j ava 2 s. c om import java.util.List; import android.graphics.Bitmap; import android.graphics.PointF; public class LevelObject { public PointF size; public PointF scale; public List<GameObject> objects; public Bitmap background; private PlayerObject thisPlayer; public PlayerObject getThisPlayer() { return thisPlayer; } public void setThisPlayer(PlayerObject player) { thisPlayer = player; } public PlayerObject getPlayerObject(int playerId) { for(GameObject obj : objects) { if(obj instanceof PlayerObject && ((PlayerObject)obj).getPlayerId() == playerId) return (PlayerObject) obj; } return null; } }