source: lost-haven/main/Gem.java@ 8edd04e

Last change on this file since 8edd04e was 8edd04e, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 4 years ago

Make the decompiled game code compile successfully

  • Property mode set to 100644
File size: 566 bytes
Line 
1package main;
2
3public class Gem extends Item {
4
5 private int value;
6 private Effect effect;
7
8 public Gem(String name, String img, int value, Effect effect) {
9 super(name, ItemType.Gem, "Gems/" + img);
10 this.value = value;
11 this.effect = effect;
12 }
13
14 public Gem(Gem copy, Point loc) {
15 super(copy, loc);
16 this.value = copy.value;
17 this.effect = copy.effect;
18 }
19
20 public Gem copy(Point loc) {
21 return new Gem(this, loc);
22 }
23
24 public int getValue() {
25 return this.value;
26 }
27
28 public Effect getEffect() {
29 return this.effect;
30 }
31}
Note: See TracBrowser for help on using the repository browser.