View Javadoc
1 package org.argosfields.model.unit; 2 3 import org.argosfields.model.IMobile; 4 import org.argosfields.model.TileDefinitions; 5 import org.argosfields.model.TransportUnit; 6 7 /*** 8 * TroopTrain.java 9 * 10 * @author Xavier Cho 11 * @version $Revision: 1.2 $ $Date: 2003/10/26 04:48:03 $ 12 */ 13 public final class TroopTrain extends TransportUnit implements IMobile { 14 15 public static final String TYPE_ID = "Troop Train"; 16 17 public static final int TERRAIN_FLAGS = 18 TileDefinitions.TT_RAILS | TileDefinitions.TT_ENTRANCE; 19 20 public TroopTrain() { 21 } 22 23 /*** 24 * @see org.argosfields.model.Unit#getIconStartIndex() 25 */ 26 protected int getIconStartIndex() { 27 return 19; 28 } 29 30 /*** 31 * @see org.argosfields.model.Unit#getTerrainFlags() 32 */ 33 protected int getTerrainFlags() { 34 return TERRAIN_FLAGS; 35 } 36 37 /*** 38 * @see org.argosfields.model.Unit#getTypeId() 39 */ 40 public String getTypeId() { 41 return TYPE_ID; 42 } 43 44 /*** 45 * @see org.argosfields.model.Unit#getBuildCost() 46 */ 47 public int getBuildCost() { 48 return 16; 49 } 50 51 /*** 52 * @see org.argosfields.model.Unit#getDefensePoint() 53 */ 54 public int getDefensePoint() { 55 return 16; 56 } 57 58 /*** 59 * @see org.argosfields.model.Unit#getWeight() 60 */ 61 public int getWeight() { 62 return 5; 63 } 64 65 /*** 66 * @see org.argosfields.model.IMobile#getMovesPerTurn() 67 */ 68 public int getMovesPerTurn() { 69 return 10; 70 } 71 72 /*** 73 * @see org.argosfields.model.TransportUnit#getTransportSlots() 74 */ 75 public int getTransportSlots() { 76 return 20; 77 } 78 79 /*** 80 * @see org.argosfields.model.TransportUnit#getMinUnitWeight() 81 */ 82 public int getMinUnitWeight() { 83 return 2; 84 } 85 86 /*** 87 * @see org.argosfields.model.TransportUnit#getMaxUnitWeight() 88 */ 89 public int getMaxUnitWeight() { 90 return 4; 91 } 92 }

This page was automatically generated by Maven