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

This page was automatically generated by Maven