Back to project page Tanks.
The source code is released under:
MIT License
If you think the Android project Tanks 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.ThirtyNineEighty.Game.Collisions; //from w w w .j a v a 2s. c om public abstract class Collision<T> { public abstract T getMTV(); public abstract float getMTVLength(); public abstract boolean isCollide(); public static int compare(Collision first, Collision second) { if (first.getMTVLength() < second.getMTVLength()) return -1; if (first.getMTVLength() > second.getMTVLength()) return 1; return 0; } }