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