Last change
on this file 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
|
Rev | Line | |
---|
[8edd04e] | 1 | package main;
|
---|
| 2 |
|
---|
| 3 | public 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.