Back to project page dragon-wars.
The source code is released under:
GNU General Public License
If you think the Android project dragon-wars 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.group7.dragonwars.engine.GoalArbitration; //w w w. jav a2s . c o m import android.util.Log; import com.group7.dragonwars.engine.GameState; import com.group7.dragonwars.engine.Position; import com.group7.dragonwars.engine.Unit; public class BuildUnit extends AtomicAction { Position destination; public BuildUnit(final GameState gameState, final Unit unit, final Position destin, final float value) { super(gameState, unit, value); destination = destin; } @Override public void Perform() { Log.d("BU", "Unit being built"); super.gameState.produceUnit(gameState.getMap().getField(destination), actionUnit); } }