Implement Thwomps

This commit is contained in:
MegaMech
2024-11-23 22:18:17 -07:00
parent fc92794854
commit fd59569ef5
10 changed files with 795 additions and 32 deletions
+7 -1
View File
@@ -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;
}