added packages

cleaned up messy things
fixed emoji not moving when prefix is a direction
fixed input message get deleted when game not active
fixed more errors
maybe something else i forgot
This commit is contained in:
AffluentAvo
2020-08-07 16:22:11 +02:00
parent 5f09809a6c
commit 6c3a422295
19 changed files with 659 additions and 257 deletions
@@ -0,0 +1,25 @@
package me.polymarsdev.sokobot.objects;
public class Destination {
int x = 0;
int y = 0;
Grid currentGrid;
public Destination(int x, int y, Grid currentGrid) {
this.x = x;
this.y = y;
this.currentGrid = currentGrid;
}
public boolean hasBox(Grid currentGrid) {
return currentGrid.isWall(x, y);
}
public int getX() {
return x;
}
public int getY() {
return y;
}
}