Back to project page rpg.
The source code is released under:
Apache License
If you think the Android project rpg 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 org.aschyiel.rpg.activities.sandbox; // w w w . j a v a2s.c om import org.aschyiel.rpg.activities.Terrain; import org.aschyiel.rpg.level.Level; import org.aschyiel.rpg.level.LevelDetail; import org.aschyiel.rpg.level.Player; import org.aschyiel.rpg.level.UnitType; public class BasicMovement extends Terrain { @Override protected Level getLevelInfo() { Level lvl = new Level(); lvl.getUnits().add( new LevelDetail( UnitType.TANK, 0, 0, Player.ONE ) ); lvl.getUnits().add( new LevelDetail( UnitType.TANK, 2, 3, Player.CPU ) ); return lvl; } }