Rev | Line | |
---|
[04e7260] | 1 | import java.awt.image.*;
|
---|
| 2 |
|
---|
| 3 |
|
---|
| 4 | public class Structure extends MapElement {
|
---|
| 5 | private StructureType type;
|
---|
| 6 |
|
---|
| 7 | public Structure(StructureType type, BufferedImage img, boolean passable) {
|
---|
| 8 | super(img, passable);
|
---|
| 9 |
|
---|
| 10 | this.type = type;
|
---|
| 11 | }
|
---|
| 12 |
|
---|
| 13 | public Structure(StructureType type, String imgFile, boolean passable) {
|
---|
| 14 | super(imgFile, passable);
|
---|
| 15 |
|
---|
| 16 | this.type = type;
|
---|
| 17 | }
|
---|
| 18 |
|
---|
| 19 | public StructureType getType() {
|
---|
| 20 | return type;
|
---|
| 21 | }
|
---|
| 22 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.