Back to project page android-jplay.
The source code is released under:
Copyright (c) Nikolaj Baer All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. ...
If you think the Android project android-jplay 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.nikolajbaer.game.objects; //from ww w. j ava2 s . c o m /* jbox2d */ import org.jbox2d.dynamics.Body; import org.jbox2d.dynamics.BodyDef; import org.jbox2d.common.Vec2; /* local */ import com.nikolajbaer.game.Game; // CONSIDER awkward, could be refactored public class PolygonGameObject extends GameObject { protected float[] m_vertices; //protected int[] x_pts; protected int[] y_pts; // CONSIDER obsolete as drawing is abstracted public PolygonGameObject(Body b,float[] vertices){ super(b); m_vertices=vertices; } public String getRenderKey(){ return "filled_polygon"; } }