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:
415 bytes
|
Line | |
---|
1 | package main;
|
---|
2 |
|
---|
3 | import java.awt.image.*;
|
---|
4 |
|
---|
5 | public 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.