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