--- /dev/null
+/***************************************************************************
+ bsconf.cpp - description
+ -------------------
+ begin : Sat Mar 9 2002
+ copyright : (C) 2002 by Michael Andreen
+ email : whale@linux.nu
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#include "bsconf.h"
+
+BSConf::BSConf(){
+}
+BSConf::~BSConf(){
+}
--- /dev/null
+/***************************************************************************
+ bsconf.h - description
+ -------------------
+ begin : Sat Mar 9 2002
+ copyright : (C) 2002 by Michael Andreen
+ email : whale@linux.nu
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#ifndef BSCONF_H
+#define BSCONF_H
+
+#include <qobject.h>
+
+/**
+ *@author Michael Andreen
+ */
+
+class BSConf : public QObject
+{
+ Q_Object
+public:
+ BSConf();
+ ~BSConf();
+};
+
+#endif
#include "bsdoc.h"
+
BSDoc::BSDoc()
{
modified = false;
{
int ships = battles[b][g][(*k).first].NumberOfShips();
groupShips += ships;
- (void) new QListViewItem(group, (*k).first, QString("%1").arg(ships));
+ (void) new QListViewItem(group, (*k).first, QString("%1").arg(ships), QString("%1").arg(battles[b][g][(*k).first].ETA()));
}
group->setText(1, QString("%1").arg(groupShips));
}
Fleet::Fleet()
{
+ m_iETA = 0;
}
Fleet::~Fleet(){
}
return total;
}
+//////////////////////////////////////////////////////////////////////////
+//
+void Fleet::setETA(int eta)
+{
+ m_iETA = eta;
+}
+
+//////////////////////////////////////////////////////////////////////////
+//
+int Fleet::ETA()
+{
+ return m_iETA;
+}
+
+
*/
int NumberOfShips();
+ /**Sets the estimated time of arrival. The time as a single integer,
+ * in relation to the current time. For example if the current time is
+ * 10, and the arrival is at 12, then the eta is 2.
+ */
+ void setETA(int eta);
+ /**Return the estimated time of arrival. It's counted from the current time (tick).
+ */
+ int ETA();
+
protected:
std::string m_sName;
std::string m_sRace;
+ int m_iETA;
std::map<std::string, std::vector<int> > m_Fleet;
static std::map<std::string, UnitType> s_Units;