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); }
public byte[] getData() { byte[] coord = location.getBytes(); byte[] bytekills = Util.getBytes(kills); byte teamByte; if (team == null) teamByte = (byte) -1; else teamByte = team.getByte(); return new byte[] { coord[0], coord[1], coord[2], coord[3], angle.getByte(), sightAngle.getByte(), getState(), teamByte, client, bytekills[0], bytekills[1] }; }