diff options
| author | MegaMech <7255464+MegaMech@users.noreply.github.com> | 2024-11-23 22:18:17 -0700 |
|---|---|---|
| committer | MegaMech <7255464+MegaMech@users.noreply.github.com> | 2024-11-23 22:18:17 -0700 |
| commit | fd59569ef59fce535427e18f42d47274ce4ac93a (patch) | |
| tree | eb24025ef4e3ad4a068c3ab8f4b76d649eb163f2 /src/engine/World.cpp | |
| parent | fc92794854eb8a1e628dff85abc749ad9d786e50 (diff) | |
Implement Thwomps
Diffstat (limited to 'src/engine/World.cpp')
| -rw-r--r-- | src/engine/World.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/engine/World.cpp b/src/engine/World.cpp index c87bb332d..ed122af56 100644 --- a/src/engine/World.cpp +++ b/src/engine/World.cpp @@ -46,6 +46,7 @@ static size_t busses; static size_t tankerTrucks; static size_t cars; static size_t boats; +static size_t thwomps; /** * Note that you can only remove the tender if there are no carriages @@ -82,7 +83,7 @@ void World::AddCar(f32 speedA, f32 speedB, TrackWaypoint* path, uint32_t waypoin } void World::ClearVehicles(void) { - trains = trucks = busses = tankerTrucks = cars = boats = 0; + trains = trucks = busses = tankerTrucks = cars = boats = thwomps = 0; Vehicles.clear(); } @@ -96,6 +97,11 @@ void World::AddBombKart(Vec3f pos, TrackWaypoint* waypoint, uint16_t waypointInd BombKarts.push_back(std::make_unique<OBombKart>(pos, waypoint, waypointIndex, state, unk_3C)); } +void World::AddThwomp(f32 x, f32 z, s16 direction, f32 scale, s16 behaviour, s16 primAlpha) { + Thwomps.push_back(std::make_unique<OThwomp>(thwomps, x, z, direction, scale, behaviour, primAlpha)); + thwomps++; +} + u32 World::GetCupIndex() { return this->CupIndex; } |
