code: public void update(Viewer viewer)
      {
          x = (int) viewer.getX();
          y = (int) viewer.getY() - viewer.getViewY();
          height = viewer.getHeight();
      }
docs: Update game text to store current location view.
  
  @param viewer The viewer reference.