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 * Submarines.java 11 * 12 * @author Xavier Cho 13 * @version $Revision: 1.2 $ $Date: 2003/10/26 04:48:03 $ 14 */ 15 public final class Submarines 16 extends Unit 17 implements IMobile, IAntiGround, IAntiSea { 18 19 public static final String TYPE_ID = "Submarines"; 20 21 public static final int TERRAIN_FLAGS = 22 TileDefinitions.TT_WATER_DEEP | TileDefinitions.TT_ENTRANCE; 23 24 public Submarines() { 25 } 26 27 /*** 28 * @see org.argosfields.model.Unit#getIconStartIndex() 29 */ 30 protected int getIconStartIndex() { 31 return 22; 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 35; 53 } 54 55 /*** 56 * @see org.argosfields.model.Unit#getDefensePoint() 57 */ 58 public int getDefensePoint() { 59 return 18; 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 6; 74 } 75 76 /*** 77 * @see org.argosfields.model.IAntiGround#getAntiGroundPower() 78 */ 79 public int getAntiGroundPower() { 80 return 5; 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 25; 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 3; 116 } 117 }

This page was automatically generated by Maven