Files
Sokobot/src/main/java/me/polymarsdev/sokobot/objects/Destination.java
T
AffluentAvo 6c3a422295 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
2020-08-07 16:22:11 +02:00

26 lines
458 B
Java

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;
}
}