source: lost-haven/main/Structure.java@ 155577b

Last change on this file since 155577b was 0870468, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 5 years ago

Move all global classes into the main package

  • Property mode set to 100644
File size: 452 bytes
Line 
1package main;
2
3import java.awt.image.*;
4
5public class Structure extends MapElement {
6 private StructureType type;
7
8 public Structure(StructureType type, BufferedImage img, boolean passable) {
9 super(img, passable);
10
11 this.type = type;
12 }
13
14 public Structure(StructureType type, String imgFile, boolean passable) {
15 super(imgFile, passable);
16
17 this.type = type;
18 }
19
20 public StructureType getType() {
21 return type;
22 }
23}
Note: See TracBrowser for help on using the repository browser.