Files
bomberman/Bomberman.cpp
YANNIS 62a0b9719f ouverture de fenetre possible
faire le Game::run
2025-05-29 18:25:10 +02:00

13 lines
441 B
C++

#include "Bomberman.hpp"
std::ostream& operator<<(std::ostream& os, const Bomberman& b) {
os << "Bomberman at (" << b._x << ", " << b._y << ") with "
<< b._maxBomb << " max bombs, "
<< b._maxRange << " max range, "
<< b._bombPlanted << " bombs planted, "
<< "speed: " << b._speed
<< ", alive: " << (b._isAlive ? "yes" : "no")
<< ", invincible: " << (b._isInvincible ? "yes" : "no");
return os;
}