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

This page was automatically generated by Maven