mirror of
https://github.com/opelly27/Sokobot.git
synced 2026-05-20 07:37:34 +00:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user