Mario Kart 64
Loading...
Searching...
No Matches
Trophy.h
Go to the documentation of this file.
1#pragma once
2
3#include <libultraship.h>
4#include <vector>
5#include "Object.h"
6#include "World.h"
8
9extern "C" {
10#include "macros.h"
11#include "main.h"
12#include "vehicles.h"
13#include "waypoints.h"
14#include "common_structs.h"
15#include "objects.h"
16#include "course_offsets.h"
17#include "some_data.h"
18}
19
20class OTrophy : public OObject {
21public:
30
31 enum Behaviour {
34 ROTATE, // A dual-axis opposing rotation
35 ROTATE2, // A single-axis rotation
37 };
38
39 explicit OTrophy(const FVector& pos, TrophyType trophy, Behaviour bhv);
40
41 virtual void Tick() override;
42 virtual void Draw(s32 cameraId) override;
43 void func_80086700(s32 objectIndex);
44 void func_80086940(s32 objectIndex);
45 void func_80086C14(s32 objectIndex);
46 void func_80086C6C(s32 objectIndex);
47
48private:
50
54 int8_t _toggle;
57 bool _isMod = false;
58};
OObject()
Definition Object.cpp:13
Behaviour
Definition Trophy.h:31
@ STATIONARY
Definition Trophy.h:33
@ PODIUM_CEREMONY
Definition Trophy.h:32
@ ROTATE
Definition Trophy.h:34
@ GO_FISH
Definition Trophy.h:36
@ ROTATE2
Definition Trophy.h:35
bool _isMod
Definition Trophy.h:57
virtual void Draw(s32 cameraId) override
Definition Trophy.cpp:216
TrophyType _trophy
Definition Trophy.h:51
Behaviour _bhv
Definition Trophy.h:53
int8_t _toggle
Definition Trophy.h:54
void func_80086940(s32 objectIndex)
Definition Trophy.cpp:263
TrophyType
Definition Trophy.h:22
@ SILVER
Definition Trophy.h:24
@ SILVER_150
Definition Trophy.h:27
@ GOLD_150
Definition Trophy.h:28
@ BRONZE
Definition Trophy.h:23
@ BRONZE_150
Definition Trophy.h:26
@ GOLD
Definition Trophy.h:25
StarEmitter * _emitter
Definition Trophy.h:49
void func_80086C6C(s32 objectIndex)
Definition Trophy.cpp:343
OTrophy(const FVector &pos, TrophyType trophy, Behaviour bhv)
Definition Trophy.cpp:23
virtual void Tick() override
Definition Trophy.cpp:96
FVector _spawnPos
Definition Trophy.h:52
void func_80086700(s32 objectIndex)
Definition Trophy.cpp:252
int8_t * _toggleVisibility
Definition Trophy.h:55
void func_80086C14(s32 objectIndex)
Definition Trophy.cpp:332
Vec3f _oldPos
Definition Trophy.h:56
Definition StarEmitter.h:22
f32 Vec3f[3]
Definition common_structs.h:10
Definition CoreMath.h:18