/** * Gets the landscape at a given position. * * @param x * x * @param y * y * @return The landscape type. */ public ELandscapeType getLandscape(int x, int y) { return map.getLandscapeTypeAt(x, y); }
private Color getColorForArea(IGraphicsGrid map, int mapminX, int mapminY, int mapmaxX, int mapmaxY) { int centerx = (mapmaxX + mapminX) / 2; int centery = (mapmaxY + mapminY) / 2; return map.getLandscapeTypeAt(centerx, centery).color; }
if (player >= 0 && !map.getLandscapeTypeAt(x, y).isBlocking) { Color playerColor = context.getPlayerColor(player);