SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
RailUtil.hpp
1#pragma once
2
3#include <revolution.h>
4#include "JSystem/JGeometry.hpp"
5
6class LiveActor;
7class RailRider;
8
9namespace MR {
10 f32 getRailTotalLength(const LiveActor *);
11
12 s32 getRailPointNum(const LiveActor *);
13 s32 getCurrentRailPointNo(const LiveActor *);
14
15 void calcRailPosAtCoord(TVec3f *, const LiveActor *, f32);
16
17 void calcRailDirectionAtCoord(TVec3f *, const LiveActor *, f32);
18
19 void calcRailPointPos(TVec3f *, const LiveActor *, int);
20 f32 getRailCoord(const LiveActor *);
21 f32 getRailPointCoord(const LiveActor *, int);
22
23 bool isRailReachedGoal(const LiveActor *);
24
25 void initAndSetRailClipping(TVec3f *, LiveActor *, f32, f32);
26
27 void moveCoordToNearestPos(LiveActor *, const TVec3f &);
28
29 void moveCoordAndTransToNearestRailPos(LiveActor *);
30 void moveTransToCurrentRailPos(LiveActor *);
31
32 void reverseRailDirection(LiveActor *);
33
34 void setRailCoord(LiveActor *, f32);
35 void setRailCoordSpeed(LiveActor *, f32);
36 void accelerateRailCoordSpeed(LiveActor *, f32);
37
38 void moveCoord(LiveActor *, f32);
39
40 void moveTransToOtherActorRailPos(LiveActor *, const LiveActor *);
41
42 const TVec3f& getRailPos(const LiveActor *);
43 const TVec3f& getRailDirection(const LiveActor *);
44
45 void moveCoordToStartPos(LiveActor *);
46
47 bool getJMapInfoRailArg0NoInit(const LiveActor *, s32 *);
48 bool getRailPointArg0NoInit(const LiveActor *, s32, f32 *);
49
50 bool getRailPointArg0WithInit(const LiveActor *, s32, s32 *);
51
52 bool getRailArg0WithInit(const LiveActor *, s32 *);
53 bool getRailArg1WithInit(const RailRider *, s32 *);
54
55 f64 calcNearestRailCoord(const LiveActor *, const TVec3f &);
56
57 void moveCoordAndFollowTrans(LiveActor *, f32);
58
59 bool isExistRail(const LiveActor *);
60
61 void moveRailRider(const LiveActor *);
62
63 void moveCoordToEndPos(const LiveActor *);
64
65 void slowDownRailCoordSpeed(const LiveActor *, f32);
66
67 bool isRailGoingToEnd(const LiveActor *);
68
69 f32 getRailCoordSpeed(const LiveActor *);
70
71 void setRailDirectionToEnd(const LiveActor *);
72
73 bool isLoopRail(const LiveActor *);
74
75 const TVec3f& getRailPointPosEnd(const LiveActor *);
76 void calcRailEndPointPos(TVec3f *, const LiveActor *);
77 void calcNearestRailPos(TVec3f *, const LiveActor *, const TVec3f &);
78};
The basis of a drawable actor that can contain states (see: Nerve)
Definition LiveActor.hpp:24