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

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

Move all global classes into the main package

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