Ejemplo n.º 1
0
 private MapCell[][] getPartOfMap(Position pos, int width, int height) {
   return getPartOfMap(
       pos.getX() - (int) Math.floor(width / 2.0),
       pos.getX() + (int) Math.ceil(width / 2.0),
       pos.getY() - (int) Math.floor(height / 2.0),
       pos.getY() + (int) Math.ceil(height / 2.0));
 }
Ejemplo n.º 2
0
 public void setCell(Position pos, MapCell cell) {
   setCell(pos.getX(), pos.getY(), cell);
 }
Ejemplo n.º 3
0
 public MapCell getCell(Position pos) {
   return getCell(pos.getX(), pos.getY());
 }