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