mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-07-09 06:54:01 -04:00
1f189dfa80
* 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>
51 lines
1008 B
C++
51 lines
1008 B
C++
#pragma once
|
|
|
|
#include <libultraship.h>
|
|
#include "Actor.h"
|
|
#include <vector>
|
|
|
|
extern "C" {
|
|
#include "main.h"
|
|
#include "vehicles.h"
|
|
#include "waypoints.h"
|
|
#include "sounds.h"
|
|
}
|
|
|
|
class ABus : public AActor {
|
|
public:
|
|
|
|
const char* Type;
|
|
size_t Index;
|
|
f32 Speed;
|
|
s16 ActorIndex;
|
|
Vec3f Position;
|
|
Vec3f Velocity;
|
|
Vec3s Rotation;
|
|
f32 SomeMultiplierTheSequel;
|
|
s8 SomeFlagsTheSequel = 0;
|
|
u16 WaypointIndex;
|
|
s8 SomeFlags = 0;
|
|
s16 SomeType;
|
|
|
|
f32 SomeArg3 = 55.0f;
|
|
f32 SomeArg4 = 12.5f;
|
|
u32 SoundBits = SOUND_ARG_LOAD(0x51, 0x01, 0x80, 0x03);
|
|
|
|
explicit ABus(f32 speedA, f32 speedB, TrackWaypoint* path, uint32_t waypoint);
|
|
|
|
~ABus() {
|
|
_count--;
|
|
}
|
|
|
|
static size_t GetCount() {
|
|
return _count;
|
|
}
|
|
|
|
virtual void Tick() override;
|
|
virtual void Draw(Camera* camera) override;
|
|
virtual void VehicleCollision(s32 playerId, Player* player) override;
|
|
virtual bool IsMod() override;
|
|
|
|
private:
|
|
static size_t _count;
|
|
}; |