- void add_bonus(BonusType type, bool animate = false); /**< picks up a bonus, taking care not to pick up lesser bonus items than we already have */
- void set_bonus(BonusType type, bool animate = false); /**< like add_bonus, but can also downgrade the bonus items carried */
+ virtual int get_coins();
+
+ /**
+ * picks up a bonus, taking care not to pick up lesser bonus items than we already have
+ *
+ * @returns true if the bonus has been set (or was already good enough)
+ * false if the bonus could not be set (for example no space for big tux)
+ */
+ bool add_bonus(BonusType type, bool animate = false);
+ /**
+ * like add_bonus, but can also downgrade the bonus items carried
+ */
+ bool set_bonus(BonusType type, bool animate = false);
+