Co-authored-by: r3cp3ct <45179536+r3cp3ct@users.noreply.github.com> Co-authored-by: sigonasr2 <sigonasr2@gmail.com>main
parent
cd993296e6
commit
65d7ed8cce
Binary file not shown.
@ -0,0 +1,10 @@ |
||||
package sig.events; |
||||
|
||||
public class DataEvent implements Event{ |
||||
|
||||
@Override |
||||
public boolean perform(int x, int y) { |
||||
return true; |
||||
} |
||||
|
||||
} |
@ -0,0 +1,13 @@ |
||||
package sig.events; |
||||
|
||||
import sig.RabiClone; |
||||
|
||||
public class WaterEvent implements Event{ |
||||
|
||||
@Override |
||||
public boolean perform(int x, int y) { |
||||
RabiClone.CURRENT_MAP.getMap().setWaterLevel(RabiClone.CURRENT_MAP.getMap().getDataTileValue(x+1, y)); |
||||
return true; |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue