1 package org.argosfields.model.unit;
2
3 import org.argosfields.model.IAntiSea;
4 import org.argosfields.model.TileDefinitions;
5 import org.argosfields.model.Unit;
6
7 /***
8 * Mines.java
9 *
10 * @author Xavier Cho
11 * @version $Revision: 1.2 $ $Date: 2003/10/26 04:48:03 $
12 */
13 public final class Mines extends Unit implements IAntiSea {
14
15 public static final String TYPE_ID = "Mines";
16
17 public static final int TERRAIN_FLAGS =
18 TileDefinitions.TT_STD_SEA;
19
20 public Mines() {
21 }
22
23 /***
24 * @see org.argosfields.model.Unit#getIconStartIndex()
25 */
26 protected int getIconStartIndex() {
27 return 15;
28 }
29
30 /***
31 * @see org.argosfields.model.Unit#getTerrainFlags()
32 */
33 protected int getTerrainFlags() {
34 return TERRAIN_FLAGS;
35 }
36
37 /***
38 * @see org.argosfields.model.Unit#getTypeId()
39 */
40 public String getTypeId() {
41 return TYPE_ID;
42 }
43
44 /***
45 * @see org.argosfields.model.Unit#getBuildCost()
46 */
47 public int getBuildCost() {
48 return 2;
49 }
50
51 /***
52 * @see org.argosfields.model.Unit#getDefensePoint()
53 */
54 public int getDefensePoint() {
55 return 25;
56 }
57
58 /***
59 * @see org.argosfields.model.Unit#getWeight()
60 */
61 public int getWeight() {
62 return 2;
63 }
64
65 /***
66 * @see org.argosfields.model.IAntiSea#getAntiSeaPower()
67 */
68 public int getAntiSeaPower() {
69 return 40;
70 }
71
72 /***
73 * @see org.argosfields.model.IAntiSea#getMinAntiSeaRange()
74 */
75 public int getMinAntiSeaRange() {
76 return 0;
77 }
78
79 /***
80 * @see org.argosfields.model.IAntiSea#getMaxAntiSeaRange()
81 */
82 public int getMaxAntiSeaRange() {
83 return 0;
84 }
85 }
This page was automatically generated by Maven