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
RevLine 
[0870468]1package main;
[a5b4186]2
[0870468]3import java.awt.image.*;
[a5b4186]4
5public class Structure extends MapElement {
[0870468]6 private StructureType type;
[a5b4186]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.