blob: 89f130997e1b157d16061db7c51b256897ffd525 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
#pragma once
#include <libultraship.h>
#include <vector>
#include "Object.h"
#include "World.h"
#include "engine/particles/StarEmitter.h"
extern "C" {
#include "macros.h"
#include "main.h"
#include "vehicles.h"
#include "waypoints.h"
#include "common_structs.h"
#include "objects.h"
#include "course_offsets.h"
#include "some_data.h"
}
class OTrophy : public OObject {
public:
enum TrophyType {
BRONZE,
SILVER,
GOLD,
BRONZE_150,
SILVER_150,
GOLD_150,
};
enum Behaviour {
PODIUM_CEREMONY,
STATIONARY,
ROTATE, // A dual-axis opposing rotation
ROTATE2, // A single-axis rotation
GO_FISH,
};
explicit OTrophy(const FVector& pos, TrophyType trophy, Behaviour bhv);
virtual void Tick() override;
virtual void Draw(s32 cameraId) override;
void func_80086700(s32 objectIndex);
void func_80086940(s32 objectIndex);
void func_80086C14(s32 objectIndex);
void func_80086C6C(s32 objectIndex);
private:
StarEmitter* _emitter;
TrophyType _trophy;
FVector _spawnPos;
Behaviour _bhv;
int8_t *_toggleVisibility;
Vec3f _oldPos;
bool _isMod = false;
};
|