Back to project page ubisoldiers.
The source code is released under:
MIT License
If you think the Android project ubisoldiers 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.github.gobbisanches.ubisoldiers.mechanics; /*from w ww .ja va 2 s.co m*/ import android.location.Location; import java.util.Random; /** * Created by Sanches on 29/06/2014. */ public interface GameRules { public Integer calculateHitPointsForUnit(Unit unit); public Integer calculateDamage(Random random, Unit attacker, Unit defender); public Integer calculateQualityOf(Item item); public Double calculateSearchModifier(Location location, Long wifiStrength); }