public:
bool Active() const { return master; }
+ common::Capsule &Master() { return *master; }
+ const common::Capsule &Master() const { return *master; }
+
const char *Name() const;
Uint8 Level() const;
#include "../Hero.h"
#include "../../app/Application.h"
#include "../../app/Input.h"
+#include "../../common/Capsule.h"
#include "../../common/GameConfig.h"
#include "../../common/GameState.h"
#include "../../common/Hero.h"
s << "Gets " << battle->GoldReward() << " gold";
lines.push_back(s.str());
+ lines.push_back("");
+
for (std::vector<Hero>::const_iterator
i(battle->HeroesBegin()), end(battle->HeroesEnd());
i != end; ++i) {
lines.push_back(s.str());
}
+ if (battle->HasCapsule()) {
+ const Capsule &capsule = battle->GetCapsule();
+ if (capsule.Health() > 0) {
+ s.str("");
+ s << capsule.Name() << " next level " << capsule.Master().NextLevel();
+ lines.push_back(s.str());
+ }
+ }
+
lines.push_back("");
s.str("");
s << parent->Game().state->money << " gold";