* centers all the surfaces on the screen. */
| 232 | * centers all the surfaces on the screen. |
| 233 | */ |
| 234 | void State::centerAllSurfaces() |
| 235 | { |
| 236 | for (std::vector<Surface*>::iterator i = _surfaces.begin(); i != _surfaces.end(); ++i) |
| 237 | { |
| 238 | (*i)->setX((*i)->getX() + _game->getScreen()->getDX()); |
| 239 | (*i)->setY((*i)->getY() + _game->getScreen()->getDY()); |
| 240 | } |
| 241 | } |
| 242 | |
| 243 | /** |
| 244 | * drop all the surfaces by half the screen height |