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