source:
java-rpg-common/Land.java
Last change on this file was 04e7260, checked in by , 17 years ago | |
---|---|
|
|
File size: 398 bytes |
Rev | Line | |
---|---|---|
[04e7260] | 1 | import java.awt.image.*; |
2 | ||
3 | public class Land extends MapElement { | |
4 | private LandType type; | |
5 | ||
6 | public Land(LandType type, BufferedImage img, boolean passable) { | |
7 | super(img, passable); | |
8 | ||
9 | this.type = type; | |
10 | } | |
11 | ||
12 | public Land(LandType type, String imgFile, boolean passable) { | |
13 | super(imgFile, passable); | |
14 | ||
15 | this.type = type; | |
16 | } | |
17 | ||
18 | public LandType getType() { | |
19 | return type; | |
20 | } | |
21 | } |
Note:
See TracBrowser
for help on using the repository browser.