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

This page was automatically generated by Maven