1 package org.argosfields.model.unit;
2
3 import org.argosfields.model.IMobile;
4 import org.argosfields.model.TileDefinitions;
5 import org.argosfields.model.TransportUnit;
6
7 /***
8 * Troopships.java
9 *
10 * @author Xavier Cho
11 * @version $Revision: 1.2 $ $Date: 2003/10/26 04:48:03 $
12 */
13 public final class Troopships
14 extends TransportUnit
15 implements IMobile {
16
17 public static final String TYPE_ID = "Troopships";
18
19 public static final int TERRAIN_FLAGS =
20 TileDefinitions.TT_WATER
21 | TileDefinitions.TT_WATER_DEEP
22 | TileDefinitions.TT_ENTRANCE;
23
24 public Troopships() {
25 }
26
27 /***
28 * @see org.argosfields.model.Unit#getIconStartIndex()
29 */
30 protected int getIconStartIndex() {
31 return 9;
32 }
33
34 /***
35 * @see org.argosfields.model.Unit#getTerrainFlags()
36 */
37 protected int getTerrainFlags() {
38 return TERRAIN_FLAGS;
39 }
40
41 /***
42 * @see org.argosfields.model.Unit#getTypeId()
43 */
44 public String getTypeId() {
45 return TYPE_ID;
46 }
47
48 /***
49 * @see org.argosfields.model.Unit#getBuildCost()
50 */
51 public int getBuildCost() {
52 return 18;
53 }
54
55 /***
56 * @see org.argosfields.model.Unit#getDefensePoint()
57 */
58 public int getDefensePoint() {
59 return 15;
60 }
61
62 /***
63 * @see org.argosfields.model.Unit#getWeight()
64 */
65 public int getWeight() {
66 return 7;
67 }
68
69 /***
70 * @see org.argosfields.model.IMobile#getMovesPerTurn()
71 */
72 public int getMovesPerTurn() {
73 return 6;
74 }
75
76 /***
77 * @see org.argosfields.model.TransportUnit#getTransportSlots()
78 */
79 public int getTransportSlots() {
80 return 30;
81 }
82
83 /***
84 * @see org.argosfields.model.TransportUnit#getMinUnitWeight()
85 */
86 public int getMinUnitWeight() {
87 return 2;
88 }
89
90 /***
91 * @see org.argosfields.model.TransportUnit#getMaxUnitWeight()
92 */
93 public int getMaxUnitWeight() {
94 return 5;
95 }
96 }
This page was automatically generated by Maven