You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
789 B
25 lines
789 B
#include "storm/logic/Coalition.h"
|
|
|
|
namespace storm {
|
|
namespace logic {
|
|
|
|
Coalition::Coalition(std::vector<boost::variant<std::string, uint_fast64_t>> playerIds) : playerIds(playerIds) {
|
|
// Intentionally left empty.
|
|
}
|
|
|
|
std::vector<boost::variant<std::string, uint_fast64_t>> Coalition::getPlayerIds() const {
|
|
return playerIds;
|
|
}
|
|
|
|
std::ostream& operator<<(std::ostream& stream, Coalition const& coalition) {
|
|
bool firstItem = true;
|
|
stream << "<<";
|
|
for (auto const& id : coalition.playerIds) {
|
|
if(firstItem) { firstItem = false; } else { stream << ","; }
|
|
stream << id;
|
|
}
|
|
stream << ">> ";
|
|
return stream;
|
|
}
|
|
}
|
|
}
|