Last change
on this file since 3d64884 was 8edd04e, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 5 years ago |
Make the decompiled game code compile successfully
|
-
Property mode
set to
100644
|
File size:
496 bytes
|
Rev | Line | |
---|
[8edd04e] | 1 | package main;
|
---|
| 2 |
|
---|
| 3 | import java.awt.image.BufferedImage;
|
---|
| 4 |
|
---|
| 5 | public class Land extends MapElement {
|
---|
| 6 |
|
---|
| 7 | private LandType type;
|
---|
| 8 |
|
---|
| 9 | public Land(LandType type, BufferedImage img, boolean passable) {
|
---|
| 10 | super(img, passable);
|
---|
| 11 | this.type = type;
|
---|
| 12 | }
|
---|
| 13 |
|
---|
| 14 | public Land(LandType type, String imgFile, boolean passable) {
|
---|
| 15 | super(imgFile, passable);
|
---|
| 16 | this.type = type;
|
---|
| 17 | }
|
---|
| 18 |
|
---|
| 19 | public Land(Land copy) {
|
---|
| 20 | super(copy);
|
---|
| 21 | this.type = copy.type;
|
---|
| 22 | }
|
---|
| 23 |
|
---|
| 24 | public LandType getType() {
|
---|
| 25 | return this.type;
|
---|
| 26 | }
|
---|
| 27 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.