1 /***************************************************************************
2 planet.cpp - description
5 copyright : (C) 2002 by Michael Andreen
7 ***************************************************************************/
9 /***************************************************************************
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
16 ***************************************************************************/
29 //////////////////////////////////////////////////////////////////////////
31 unsigned Planet::planetScore() const
36 //////////////////////////////////////////////////////////////////////////
38 void Planet::setPlanetScore(unsigned i)
43 //////////////////////////////////////////////////////////////////////////
45 int roids(std::string type, int tick = 0) const
47 ticks = m_Roids[type].size();
51 return m_Roids[type][ticks];
52 return m_Roids[type][tick];
55 //////////////////////////////////////////////////////////////////////////
57 void setRoids(std::string type, int number)
59 if (m_Roids[type].size() == 0)
60 m_Roids.push_back(number);
61 m_Roids[type][0] = number;