Last change
on this file since a5b4186 was a5b4186, checked in by dportnoy <dmp1488@…>, 18 years ago |
[svn r36] Renamed remotely
|
-
Property mode
set to
100644
|
File size:
436 bytes
|
Rev | Line | |
---|
[a5b4186] | 1 | import java.awt.image.*;
|
---|
| 2 |
|
---|
| 3 |
|
---|
| 4 | public class Structure extends MapElement {
|
---|
| 5 | private StructureType type;
|
---|
| 6 |
|
---|
| 7 | public Structure(StructureType type, BufferedImage img, boolean passable) {
|
---|
| 8 | super(img, passable);
|
---|
| 9 |
|
---|
| 10 | this.type = type;
|
---|
| 11 | }
|
---|
| 12 |
|
---|
| 13 | public Structure(StructureType type, String imgFile, boolean passable) {
|
---|
| 14 | super(imgFile, passable);
|
---|
| 15 |
|
---|
| 16 | this.type = type;
|
---|
| 17 | }
|
---|
| 18 |
|
---|
| 19 | public StructureType getType() {
|
---|
| 20 | return type;
|
---|
| 21 | }
|
---|
| 22 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.