Methapolis  0.27
 All Classes Namespaces Files Functions Variables Enumerator
MapObject.java
Go to the documentation of this file.
1 package refactored;
2 
3 import java.util.List;
4 import java.util.Map;
5 
6 import micropolisj.engine.TileBehavior;
7 import micropolisj.engine.TileSpec;
8 import micropolisj.engine.TileSpec.BuildingInfo;
9 
10 public class MapObject {
11  // attributes
12  private boolean bulldozable;
13  private boolean burnable;
14  private boolean conducting;
15  private boolean overWater;
16 
17  private int id;
18  private int imageIndex;
19 
20  private List<MapImage> images;
21  private String name;
22  private String description;
24  private Zone zone;
25 
26 
27  public TileSpec owner;
28  public int ownerOffsetX;
29  public int ownerOffsetY;
30  public BuildingInfo buildingInfo;
32  public TileSpec onPower;
34  public Map<String, String> attributes;
35 
36  // CONSTRUCTOR
37  public MapObject() {
38  // TODO: init stuff here
39  }
40 
41  // GETTERS & SETTERS
42  public boolean isBulldozable() {
43  return this.bulldozable;
44  }
45 
46  public void setBulldozable(boolean bulldozable) {
47  this.bulldozable = bulldozable;
48  }
49 
50  public boolean isBurnable() {
51  return this.burnable;
52  }
53 
54  public void setBurnable(boolean burnable) {
55  this.burnable = burnable;
56  }
57 
58  public boolean isConducting() {
59  return this.conducting;
60  }
61 
62  public void setConducting(boolean conducting) {
63  this.conducting = conducting;
64  }
65 
66  public boolean isOverWater() {
67  return this.overWater;
68  }
69 
70  public void setOverWater(boolean overWater) {
71  this.overWater = overWater;
72  }
73 
74  public Zone getZone() {
75  return this.zone;
76  }
77 
78  public void setZone(Zone zone) {
79  this.zone = zone;
80  }
81 
82  public String getName() {
83  return this.name;
84  }
85 
86  public void setName(String name) {
87  this.name = name;
88  }
89 
90  public List<MapImage> getImages() {
91  return this.images;
92  }
93 
94  public void setImages(List<MapImage> images) {
95  this.images = images;
96  }
97 
98  public int getId() {
99  return id;
100  }
101 
102  public void setId(int id) {
103  this.id = id;
104  }
105 
106  public int getImageIndex() {
107  return imageIndex;
108  }
109 
110  public void setImageIndex(int imageIndex) {
111  this.imageIndex = imageIndex;
112  }
113 
115  return behavior;
116  }
117 
119  this.behavior = behavior;
120  }
121 
122  public String getDescription() {
123  return this.description;
124  }
125 
126  public void setDescription(String description) {
127  this.description = description;
128  }
129 
130 
131 }