mirror of
https://github.com/zeldaret/st
synced 2026-08-05 09:34:10 -04:00
96874ba24e
* UnkStruct_027e09b4_001 OK * UnkStruct_027e09ac_001 OK * UnkStruct_027e0cec_001 OK * SysNew OK * UnkStruct_027e0cec_18_001 OK * UnkStruct_027e0ce0_34_001 OK * UnkStruct_027e0d00_001 OK * PassengerManager_001 OK * UnkStruct_027e0cf8_08_00_001 OK * UnkStruct_ov020_020e8544_001 OK * code_020bfdd0 OK and code_020bfeec OK * code_020c099c OK
95 lines
2.4 KiB
C++
95 lines
2.4 KiB
C++
#pragma once
|
|
|
|
#include "Actor/ActorId.hpp"
|
|
#include "Save/AdventureFlags.hpp"
|
|
#include "Unknown/UnkStruct_027e09a4.hpp"
|
|
#include "types.h"
|
|
|
|
enum HappinessLevel_ {
|
|
HappinessLevel_0,
|
|
HappinessLevel_1,
|
|
HappinessLevel_2,
|
|
HappinessLevel_3,
|
|
HappinessLevel_4,
|
|
HappinessLevel_5,
|
|
};
|
|
|
|
struct UnkStruct_Param1 {
|
|
/* 00 */ ActorId actorId;
|
|
/* 04 */ s16 mUnk_04;
|
|
/* 06 */ SceneIndex_Half sceneIndex;
|
|
/* 08 */ u8 roomIndex;
|
|
/* 0C */ unk32 mUnk_0C;
|
|
/* 10 */ unk32 happiness;
|
|
/* 14 */ u16 mUnk_14;
|
|
/* 18 */
|
|
};
|
|
|
|
class Passenger {
|
|
public:
|
|
/* 00 */ ActorId mActorId;
|
|
/* 04 */ unk32 mUnk_04;
|
|
/* 08 */ SceneIndex mSceneIndex;
|
|
/* 0C */ u8 mRoomIndex;
|
|
/* 10 */ unk32 mHappiness;
|
|
|
|
Passenger();
|
|
void Reset();
|
|
};
|
|
|
|
class PassengerManager : public AutoInstance<PassengerManager> {
|
|
public:
|
|
/* 00 */ Passenger mPassenger;
|
|
/* 14 */ Passenger mPassenger2;
|
|
/* 28 */ u16 mDate;
|
|
/* 2A */ unk16 mUnk_2A;
|
|
/* 2C */ unk32 mUnk_2C;
|
|
/* 30 */ unk32 mUnk_30;
|
|
/* 34 */
|
|
|
|
// overlay 1
|
|
PassengerManager();
|
|
~PassengerManager();
|
|
|
|
void func_ov001_020bf8e4();
|
|
void func_ov001_020bf90c();
|
|
void func_ov001_020bf910();
|
|
bool func_ov001_020bfa1c();
|
|
|
|
static void Destroy();
|
|
static bool func_ov001_020bf870();
|
|
|
|
// overlay 24
|
|
void func_ov024_020d41bc(const UnkStruct_Param1 *pActorId);
|
|
void func_ov024_020d41f4(UnkStruct_Param1 *param1);
|
|
void func_ov024_020d4228();
|
|
void func_ov024_020d4258();
|
|
bool TryBoardTrain(ActorId actorId, SceneIndex sceneIndex, u32 roomIndex);
|
|
bool TryReset();
|
|
bool TryResetAtDestination();
|
|
bool ReachedDestination(SceneIndex sceneIndex, u32 roomIndex);
|
|
bool TrySetCaughtByPirates();
|
|
bool CaughtByPiratesTryReset();
|
|
void GiveHappiness(unk32 amount);
|
|
unk32 GetHappiness();
|
|
unk32 GetHappinessCond();
|
|
bool CanCompleteTrip();
|
|
bool IsCaughtByPirates();
|
|
ActorId GetActorId();
|
|
PassengerManager *GetInstance();
|
|
void func_ov024_020d4554();
|
|
void Reset();
|
|
bool IsDateUnset();
|
|
s16 GetDate();
|
|
u32 GetRandomIndex(u32 param1, u32 seed);
|
|
void SetFailedFlag();
|
|
|
|
static u32 GetPassengerInfoIndex(ActorId actorId);
|
|
static AdventureFlag GetBoardFlag(ActorId actorId);
|
|
static AdventureFlag GetFailFlag(ActorId actorId);
|
|
static PassengerManager *Create();
|
|
};
|
|
|
|
extern PassengerManager *gpPassengerManager;
|
|
extern const s16 data_ov024_020d7598[];
|