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; //from w w w. j a va 2 s.c o m import com.group7.dragonwars.engine.GameState; import com.group7.dragonwars.engine.Position; import com.group7.dragonwars.engine.Unit; public class MoveTo extends AtomicAction { Position destination; public MoveTo(final GameState gameState, final Unit unit, final Position destin, final float value) { super(gameState, unit, value); destination = destin; } @Override public void Perform() { super.gameState.move(getUnit(), destination); } }