Planet::~Planet(){
}
-unsigned Planet::score(int tick = 0)
+//////////////////////////////////////////////////////////////////////////
+//
+unsigned Planet::planetScore() const
{
return m_iScore;
}
-void Planet::setScore(unsigned i)
+//////////////////////////////////////////////////////////////////////////
+//
+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;
+}
+
+