Example #1
0
 public void draw(Graphics g, Screen s) {
   int x = s.translateXToScreen(location.xInt());
   int y = s.translateYToScreen(location.yInt());
   if (team != null)
     draw(g, x, y, angle.getValue(), sightAngle.getValue(), 1, (int) (team.getByte()), kills);
   else draw(g, x, y, angle.getValue(), sightAngle.getValue(), 1, -1, kills);
 }
Example #2
0
  public static int[] draw(Graphics g, byte[] data, Screen s) {
    int client = (int) data[8];
    int realX = Util.getInt(data[0], data[1]);
    int realY = Util.getInt(data[2], data[3]);
    int x = s.translateXToScreen(realX);
    int y = s.translateYToScreen(realY);
    int kills = Util.getInt(data[9], data[10]);
    draw(
        g,
        x,
        y,
        Angle.getDouble(data[4]),
        Angle.getDouble(data[5]),
        (int) data[6],
        (int) data[7],
        kills);
    int[] retur = {client, realX, realY, kills, (int) data[7]};

    return retur;
  }