Changeset 8edd04e in lost-haven for main/Land.java


Ignore:
Timestamp:
Jun 7, 2020, 3:04:32 PM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
master
Children:
a49176d
Parents:
155577b
Message:

Make the decompiled game code compile successfully

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/Land.java

    r155577b r8edd04e  
    11package main;
    22
    3 import java.awt.image.*;
     3import java.awt.image.BufferedImage;
    44
    55public class Land extends MapElement {
    6         private LandType type;
    7        
    8         public Land(LandType type, BufferedImage img, boolean passable) {
    9                 super(img, passable);
    106
    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  }
    2327}
Note: See TracChangeset for help on using the changeset viewer.