#include "planet.h"
-Planet::Planet(){
+Planet::Planet()
+{
+ m_sRace = "Planet";
+ m_iScore = 0;
}
+
Planet::~Planet(){
}
+
+//////////////////////////////////////////////////////////////////////////
+//
+unsigned Planet::planetScore() const
+{
+ return m_iScore;
+}
+
+//////////////////////////////////////////////////////////////////////////
+//
+void Planet::setPlanetScore(unsigned i)
+{
+ m_iScore = i;
+}
+
+//////////////////////////////////////////////////////////////////////////
+//
+int roids(std::string type, int tick = 0) const
+{
+ ticks = m_Roids[type].size();
+ if( ticks == 0)
+ return 0;
+ if (ticks < tick)
+ return m_Roids[type][ticks];
+ return m_Roids[type][tick];
+}
+
+//////////////////////////////////////////////////////////////////////////
+//
+void setRoids(std::string type, int number)
+{
+ if (m_Roids[type].size() == 0)
+ m_Roids.push_back(number);
+ m_Roids[type][0] = number;
+}
+
+