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