View Javadoc
1 package org.argosfields.model.unit; 2 3 import org.argosfields.model.IAntiGround; 4 import org.argosfields.model.IAntiSea; 5 import org.argosfields.model.IMobile; 6 import org.argosfields.model.TileDefinitions; 7 import org.argosfields.model.Unit; 8 9 /*** 10 * Scouts.java 11 * 12 * @author Xavier Cho 13 * @version $Revision: 1.2 $ $Date: 2003/10/26 04:48:03 $ 14 */ 15 public final class Scouts 16 extends Unit 17 implements IMobile, IAntiGround, IAntiSea { 18 public static final String TYPE_ID = "Scouts"; 19 20 public static final int TERRAIN_FLAGS = 21 TileDefinitions.TT_ROAD 22 | TileDefinitions.TT_RAILS 23 | TileDefinitions.TT_PLAINS 24 | TileDefinitions.TT_TRENCHES 25 | TileDefinitions.TT_ENTRANCE; 26 27 public Scouts() { 28 } 29 30 /*** 31 * @see org.argosfields.model.Unit#getIconStartIndex() 32 */ 33 protected int getIconStartIndex() { 34 return 17; 35 } 36 37 /*** 38 * @see org.argosfields.model.Unit#getTerrainFlags() 39 */ 40 protected int getTerrainFlags() { 41 return TERRAIN_FLAGS; 42 } 43 44 /*** 45 * @see org.argosfields.model.Unit#getTypeId() 46 */ 47 public String getTypeId() { 48 return TYPE_ID; 49 } 50 51 /*** 52 * @see org.argosfields.model.Unit#getBuildCost() 53 */ 54 public int getBuildCost() { 55 return 16; 56 } 57 58 /*** 59 * @see org.argosfields.model.Unit#getDefensePoint() 60 */ 61 public int getDefensePoint() { 62 return 10; 63 } 64 65 /*** 66 * @see org.argosfields.model.Unit#getWeight() 67 */ 68 public int getWeight() { 69 return 3; 70 } 71 72 /*** 73 * @see org.argosfields.model.IMobile#getMovesPerTurn() 74 */ 75 public int getMovesPerTurn() { 76 return 10; 77 } 78 79 /*** 80 * @see org.argosfields.model.IAntiGround#getAntiGroundPower() 81 */ 82 public int getAntiGroundPower() { 83 return 15; 84 } 85 86 /*** 87 * @see org.argosfields.model.IAntiGround#getMinAntiGroundRange() 88 */ 89 public int getMinAntiGroundRange() { 90 return 1; 91 } 92 93 /*** 94 * @see org.argosfields.model.IAntiGround#getMaxAntiGroundRange() 95 */ 96 public int getMaxAntiGroundRange() { 97 return 2; 98 } 99 100 /*** 101 * @see org.argosfields.model.IAntiSea#getAntiSeaPower() 102 */ 103 public int getAntiSeaPower() { 104 return 12; 105 } 106 107 /*** 108 * @see org.argosfields.model.IAntiSea#getMinAntiSeaRange() 109 */ 110 public int getMinAntiSeaRange() { 111 return 1; 112 } 113 114 /*** 115 * @see org.argosfields.model.IAntiSea#getMaxAntiSeaRange() 116 */ 117 public int getMaxAntiSeaRange() { 118 return 2; 119 } 120 }

This page was automatically generated by Maven