1 package org.argosfields.model.unit;
2
3 import org.argosfields.model.IAntiAircraft;
4 import org.argosfields.model.IMobile;
5 import org.argosfields.model.TileDefinitions;
6 import org.argosfields.model.Unit;
7
8 /***
9 * AntiAircraftGuns.java
10 *
11 * @author Xavier Cho
12 * @version $Revision: 1.2 $ $Date: 2003/10/26 04:48:03 $
13 */
14 public final class AntiAircraftGuns
15 extends Unit
16 implements IMobile, IAntiAircraft {
17
18 public static final String TYPE_ID = "Anti-Aircraft Guns";
19
20 public static final int TERRAIN_FLAGS =
21 TileDefinitions.TT_ROAD
22 | TileDefinitions.TT_PLAINS
23 | TileDefinitions.TT_ENTRANCE;
24
25 public AntiAircraftGuns() {
26 }
27
28 /***
29 * @see org.argosfields.model.Unit#getIconStartIndex()
30 */
31 protected int getIconStartIndex() {
32 return 13;
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 18;
54 }
55
56 /***
57 * @see org.argosfields.model.Unit#getDefensePoint()
58 */
59 public int getDefensePoint() {
60 return 8;
61 }
62
63 /***
64 * @see org.argosfields.model.Unit#getWeight()
65 */
66 public int getWeight() {
67 return 3;
68 }
69
70 /***
71 * @see org.argosfields.model.IMobile#getMovesPerTurn()
72 */
73 public int getMovesPerTurn() {
74 return 5;
75 }
76
77 /***
78 * @see org.argosfields.model.IAntiAircraft#getAntiAircraftPower()
79 */
80 public int getAntiAircraftPower() {
81 return 25;
82 }
83
84 /***
85 * @see org.argosfields.model.IAntiAircraft#getMinAntiAircraftRange()
86 */
87 public int getMinAntiAircraftRange() {
88 return 2;
89 }
90
91 /***
92 * @see org.argosfields.model.IAntiAircraft#getMaxAntiAircraftRange()
93 */
94 public int getMaxAntiAircraftRange() {
95 return 6;
96 }
97 }
This page was automatically generated by Maven