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

This page was automatically generated by Maven