예제 #1
0
 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());
 }
예제 #2
0
 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());
 }
예제 #3
0
 public void render(Signpost signpost) {
   Vector pos = signpost.position().add(viewPoint);
   graphics.drawString(signpost.getLabel(), (int) pos.x(), (int) pos.y());
 }