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.TileDefinitions;
7 import org.argosfields.model.Unit;
8
9 /***
10 * Bunkers.java
11 *
12 * @author Xavier Cho
13 * @version $Revision: 1.2 $ $Date: 2003/10/26 04:48:03 $
14 */
15 public final class Bunkers
16 extends Unit
17 implements IAntiGround, IAntiSea, IAntiAircraft {
18
19 public static final String TYPE_ID = "Bunkers";
20
21 public static final int TERRAIN_FLAGS = TileDefinitions.TT_STD_GROUND;
22
23 public Bunkers() {
24 }
25
26 /***
27 * @see org.argosfields.model.Unit#getIconStartIndex()
28 */
29 protected int getIconStartIndex() {
30 return 14;
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 2;
52 }
53
54 /***
55 * @see org.argosfields.model.Unit#getDefensePoint()
56 */
57 public int getDefensePoint() {
58 return 22;
59 }
60
61 /***
62 * @see org.argosfields.model.Unit#getWeight()
63 */
64 public int getWeight() {
65 return 8;
66 }
67
68
69 /***
70 * @see org.argosfields.model.IAntiGround#getAntiGroundPower()
71 */
72 public int getAntiGroundPower() {
73 return 18;
74 }
75
76 /***
77 * @see org.argosfields.model.IAntiGround#getMinAntiGroundRange()
78 */
79 public int getMinAntiGroundRange() {
80 return 1;
81 }
82
83 /***
84 * @see org.argosfields.model.IAntiGround#getMaxAntiGroundRange()
85 */
86 public int getMaxAntiGroundRange() {
87 return 2;
88 }
89
90 /***
91 * @see org.argosfields.model.IAntiSea#getAntiSeaPower()
92 */
93 public int getAntiSeaPower() {
94 return 18;
95 }
96
97 /***
98 * @see org.argosfields.model.IAntiSea#getMinAntiSeaRange()
99 */
100 public int getMinAntiSeaRange() {
101 return 1;
102 }
103
104 /***
105 * @see org.argosfields.model.IAntiSea#getMaxAntiSeaRange()
106 */
107 public int getMaxAntiSeaRange() {
108 return 2;
109 }
110
111 /***
112 * @see org.argosfields.model.IAntiAircraft#getAntiAircraftPower()
113 */
114 public int getAntiAircraftPower() {
115 return 15;
116 }
117
118 /***
119 * @see org.argosfields.model.IAntiAircraft#getMinAntiAircraftRange()
120 */
121 public int getMinAntiAircraftRange() {
122 return 1;
123 }
124
125 /***
126 * @see org.argosfields.model.IAntiAircraft#getMaxAntiAircraftRange()
127 */
128 public int getMaxAntiAircraftRange() {
129 return 1;
130 }
131 }
This page was automatically generated by Maven