Changeset 8edd04e in lost-haven for main/Land.java
- Timestamp:
- Jun 7, 2020, 3:04:32 PM (5 years ago)
- Branches:
- master
- Children:
- a49176d
- Parents:
- 155577b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/Land.java
r155577b r8edd04e 1 1 package main; 2 2 3 import java.awt.image. *;3 import java.awt.image.BufferedImage; 4 4 5 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 6 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 } 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 } 23 27 }
Note:
See TracChangeset
for help on using the changeset viewer.