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

This page was automatically generated by Maven