mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-08-16 21:37:47 -04:00
Refactors (#114)
* Update Engine.cpp * fix * Add Actors * Refactor * Update Game.cpp * Refactors as per review
This commit is contained in:
+5
-6
@@ -67,6 +67,8 @@ class World {
|
||||
public:
|
||||
explicit World();
|
||||
|
||||
void AddCourse(Course* course);
|
||||
|
||||
AActor* AddActor(std::unique_ptr<AActor> actor);
|
||||
void TickActors();
|
||||
void DrawActors(Camera* camera);
|
||||
@@ -74,7 +76,6 @@ public:
|
||||
|
||||
Object* AddObject(std::unique_ptr<GameObject> object);
|
||||
|
||||
|
||||
CProperties* GetCourseProps();
|
||||
void TickObjects();
|
||||
void DrawObjects(Camera *camera);
|
||||
@@ -82,15 +83,13 @@ public:
|
||||
void DestroyObjects();
|
||||
Object *GetObjectByIndex(size_t);
|
||||
|
||||
Cup* AddCup(const char* name, std::vector<Course*> courses);
|
||||
Cup* GetCup();
|
||||
void AddCup(Cup*);
|
||||
void SetCup(Cup* cup);
|
||||
const char* GetCupName();
|
||||
u32 GetCupIndex();
|
||||
void SetCupIndex(int16_t courseId);
|
||||
u32 NextCup();
|
||||
u32 PreviousCup();
|
||||
void SetCourseFromCup();
|
||||
void SetCup();
|
||||
|
||||
World* GetWorld(void);
|
||||
|
||||
@@ -105,7 +104,7 @@ public:
|
||||
Course* CurrentCourse;
|
||||
Cup* CurrentCup;
|
||||
|
||||
std::vector<std::shared_ptr<Cup>> Cups;
|
||||
std::vector<Cup*> Cups;
|
||||
size_t CupIndex = 1;
|
||||
|
||||
std::vector<std::unique_ptr<GameObject>> GameObjects;
|
||||
|
||||
Reference in New Issue
Block a user