62a0b9719f
faire le Game::run
13 lines
441 B
C++
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;
|
|
}
|