public void render(Mine mine) { Vector pos = mine.position().add(viewPoint); int radius = (int) mine.boundingRadius(); int length = radius * 2; graphics.drawRect((int) pos.x() - radius, (int) pos.y() - radius, length, length); graphics.drawString(String.valueOf(mine.yield()), (int) pos.x() - 10, (int) pos.y()); }
public void render(BaseCamp baseCamp) { Vector pos = baseCamp.position().add(viewPoint); int radius = (int) baseCamp.boundingRadius(); int length = radius * 2; graphics.drawRect((int) pos.x() - radius, (int) pos.y() - radius, length, length); graphics.drawString("Base", (int) pos.x() - 10, (int) pos.y()); }
public void render(Signpost signpost) { Vector pos = signpost.position().add(viewPoint); graphics.drawString(signpost.getLabel(), (int) pos.x(), (int) pos.y()); }