Mario Kart 64
Loading...
Searching...
No Matches
HM_Intro.h
Go to the documentation of this file.
1#ifndef _HM_INTRO_H
2#define _HM_INTRO_H
3
4#include <libultraship.h>
5#include <libultra/gbi.h>
6#include "CoreMath.h"
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11#include "common_structs.h"
12#ifdef __cplusplus
13}
14#endif
15
16#ifdef __cplusplus
17class HarbourMastersIntro {
18public:
19 HarbourMastersIntro();
20
21 void HM_InitIntro();
22 void HM_TickIntro();
23 void HM_DrawIntro();
24private:
25 void Setup();
26 void Sync();
27 void Bob(FVector& pos, IRotator& rot, f32 bobAmp, f32 bobSpeed, f32 tiltAmp, f32 tiltSpeed, f32 rollAmp, f32 rollSpeed);
28 void SpagBob(FVector& pos, IRotator& rot, f32 bobAmp, f32 bobSpeed, f32 tiltAmp, f32 tiltSpeed, f32 rollAmp, f32 rollSpeed);
29 void MoveCloserToCamera(float moveSpeed);
30
31 struct HMCamera {
32 FVector Pos;
33 FVector LookAt;
34 };
35
36 Mtx PerspectiveMatrix;
37 Mtx LookAtMatrix;
38 HMCamera _camera;
39
40 f32 _cameraSpeed;
41 f32 _cameraMaxSpeed;
42 f32 _cameraAcceleration;
43
44 FVector _pos;
45 IRotator _rot;
46 FVector _scale;
47
48 FVector _shipPos;
49 IRotator _shipRot;
50
51 FVector _ship2Pos;
52 IRotator _ship2Rot;
53
54 s32 _water = 0;
55
56 FVector _posHM64;
57 IRotator _rotHM64;
58
59 FVector _hPos;
60 IRotator _hRot;
61 FVector _hScale;
62
63 FVector lusPos;
64 IRotator lusRot;
65 FVector lusScale;
66 int32_t DespawnValue = 0;
67};
68
69extern "C" {
70#endif
71
72void HM_InitIntro(void);
73void HM_TickIntro(void);
74void HM_DrawIntro(void);
75
76#ifdef __cplusplus
77}
78#endif
79
80#endif // _HM_INTRO_H
void HM_InitIntro(void)
Definition HM_Intro.cpp:27
void HM_DrawIntro(void)
Definition HM_Intro.cpp:117
void HM_TickIntro(void)
Definition HM_Intro.cpp:70
@ Mtx
Definition Array.h:54
@ f32
Definition GenericArray.h:59
@ s32
Definition GenericArray.h:57