]> ruin.nu Git - hbs.git/blobdiff - bs/planet.cpp
some changes
[hbs.git] / bs / planet.cpp
index e8954e16e32700fcff56cdcd50c6c168c21bfeb0..4fa69786a009e426ae8dd666724965d3aa89465c 100644 (file)
@@ -26,12 +26,39 @@ Planet::Planet()
 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;
+}
+
+