diff options
| author | MegaMech <MegaMech@users.noreply.github.com> | 2025-01-23 11:22:07 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-23 11:22:07 -0700 |
| commit | 1f189dfa804a05177f99dda1044898eb63fdcb3f (patch) | |
| tree | 598e0a6c26a5554afd1fcbcd801079fd1df090d3 /src/engine/World.h | |
| parent | 24ecfc3db43bfa606f41c42ef8778f96b5047c6b (diff) | |
Game.cpp and World.cpp Cleanup (#159)
* Remove CProperties and delete dup Properties from World.h
* Improvement
* Fix compile
* Cleanup
* Document gRaceState
* wip cleanup
* compile
* Impl PlayerBombKart
* Rename CourseManager_ to CM_
* Finish renames m_ to CM_
* cleanup
* Remove extra printf
---------
Co-authored-by: MegaMech <7255464+MegaMech@users.noreply.github.com>
Diffstat (limited to 'src/engine/World.h')
| -rw-r--r-- | src/engine/World.h | 54 |
1 files changed, 3 insertions, 51 deletions
diff --git a/src/engine/World.h b/src/engine/World.h index a8e9932f5..3ba6e0437 100644 --- a/src/engine/World.h +++ b/src/engine/World.h @@ -2,12 +2,13 @@ #include <libultraship.h> #include "CoreMath.h" +#include "engine/courses/Course.h" #include "objects/Object.h" #include "Cup.h" -#include "vehicles/Vehicle.h" #include "vehicles/Train.h" #include "vehicles/Car.h" #include "objects/BombKart.h" +#include "PlayerBombKart.h" #include "vehicles/Train.h" #include "TrainCrossing.h" #include "objects/Thwomp.h" @@ -22,7 +23,6 @@ extern "C" { #include "camera.h" #include "objects.h" -#include "engine/Engine.h" }; class OObject; @@ -34,47 +34,6 @@ class TrainCrossing; class OLakitu; class World { - - typedef struct { - uint8_t r, g, b; - } RGB8; - - typedef struct { - RGB8 TopRight; - RGB8 BottomRight; - RGB8 BottomLeft; - RGB8 TopLeft; - RGB8 FloorTopRight; - RGB8 FloorBottomRight; - RGB8 FloorBottomLeft; - RGB8 FloorTopLeft; - } SkyboxColours; - - - typedef struct { - const char* Name; - const char* DebugName; - const char* CourseLength; - const char* AIBehaviour; - float AIMaximumSeparation; - float AIMinimumSeparation; - int16_t *SomePtr; - uint32_t AISteeringSensitivity; - _struct_gCoursePathSizes_0x10 PathSizes; - Vec4f D_0D009418; - Vec4f D_0D009568; - Vec4f D_0D0096B8; - Vec4f D_0D009808; - const char* PathTable[4]; - const char* PathTable2[4]; - CloudData *Clouds; - CloudData *CloudList; - int32_t MinimapFinishlineX; - int32_t MinimapFinishlineY; - SkyboxColours Skybox; - MusicSeq Sequence; - } Properties; - typedef struct { std::vector<Mtx> Hud; std::vector<Mtx> Objects; @@ -98,7 +57,6 @@ public: OObject* AddObject(OObject* object); - CProperties* GetCourseProps(); void TickObjects(); void TickObjects60fps(); void DrawObjects(s32 cameraId); @@ -136,18 +94,12 @@ public: std::vector<AActor*> Actors; std::vector<OObject*> Objects; - std::vector<AVehicle*> Vehicles; - std::vector<OBombKart*> BombKarts; std::vector<ParticleEmitter*> Emitters; std::unordered_map<s32, OLakitu*> Lakitus; - AVehicle* AddVehicle(AVehicle* vehicle); - - void ClearVehicles(void); - /** Objects **/ - void AddBombKart(Vec3f pos, TrackWaypoint* waypoint, uint16_t waypointIndex, uint16_t state, f32 unk_3C); + PlayerBombKart playerBombKart[4]; // Used in battle mode TrainCrossing* AddCrossing(Vec3f position, u32 waypointMin, u32 waypointMax, f32 approachRadius, f32 exitRadius); std::vector<std::shared_ptr<TrainCrossing>> Crossings; |
