protected void drawHud(boolean firstDraw) {
        String buffer;
        NumberFormat numFormat = NumberFormat.getInstance();
        numFormat.setMaximumFractionDigits(1);
        numFormat.setMinimumFractionDigits(1);
        sendText(TrekAnsi.clearScreen(this));
        buffer = shipName + " ";
        for (int x = buffer.length(); x < 21; x++) {
            buffer += "-";
        }
        sendText(TrekAnsi.locate(3, 1, this) + buffer + "+----------tactical display----------+\r\n");
        sendText(TrekAnsi.locate(4, 1, this) + "Warp Energy:         |" + TrekAnsi.locate(4, 59, this) + "|");
        sendText(TrekAnsi.locate(5, 1, this) + "Impulse Energy:      |" + TrekAnsi.locate(5, 59, this) + "|");
        sendText(TrekAnsi.locate(6, 1, this) + "Power Unused:        |" + TrekAnsi.locate(6, 59, this) + "|");
        sendText(TrekAnsi.locate(7, 1, this) + "Warp:                |" + TrekAnsi.locate(7, 59, this) + "|");
        sendText(TrekAnsi.locate(8, 1, this) + "Shields:           % |" + TrekAnsi.locate(8, 59, this) + "|");
        sendText(TrekAnsi.locate(9, 1, this) + "Ph:      Damage:     |" + TrekAnsi.locate(9, 59, this) + "|");
        sendText(TrekAnsi.locate(10, 1, this) + "Tp:      DmgCtl:     |" + TrekAnsi.locate(10, 59, this) + "|");
        sendText(TrekAnsi.locate(11, 1, this) + "Life Support:      % |" + TrekAnsi.locate(11, 59, this) + "|");
        sendText(TrekAnsi.locate(12, 1, this) + "Anti-Matter:         |" + TrekAnsi.locate(12, 59, this) + "|");
        sendText(TrekAnsi.locate(13, 1, this) + "X:                   |" + TrekAnsi.locate(13, 59, this) + "|");
        sendText(TrekAnsi.locate(14, 1, this) + "Y:                   |" + TrekAnsi.locate(14, 59, this) + "|");
        sendText(TrekAnsi.locate(15, 1, this) + "Z:        HD:        |" + TrekAnsi.locate(15, 59, this) + "|");
        sendText(TrekAnsi.locate(16, 1, this) + "---------------------+------------------------------------+");
        if (hud == null)
            System.out.println("HUD IS NULL!");
        hud.reset(firstDraw);
    }