19 lines
776 B
C++
19 lines
776 B
C++
// Stubs de Player per als binaris `test_entities_smoke` i `test_whip_attack`.
|
|
//
|
|
// `Hole` referencia `Player::getHitBox()` i `Player::enterHoleFall()` dins
|
|
// de `onPlayerContact` (camí no exercit pels tests stand-alone). Linkar
|
|
// `player.cpp` arrossegaria audio/gamepad/input/screen/cache, una explosió
|
|
// de dependències que els smokes intenten evitar — mateixa decisió que
|
|
// `whip_attack_player_stubs.cpp`. Aquests stubs proporcionen els símbols
|
|
// com a no-op perquè T1/T7 puguin fer `factory.create("hole", ...)`.
|
|
#include <SDL3/SDL.h>
|
|
|
|
#include "game/entities/player.hpp"
|
|
|
|
auto Player::getHitBox() const -> SDL_FRect {
|
|
return SDL_FRect{0.0F, 0.0F, 0.0F, 0.0F};
|
|
}
|
|
|
|
void Player::enterHoleFall(float /*center_x*/, float /*center_y*/, float /*floor_y*/) {
|
|
}
|