persona-3-dual
A DS demake of Persona 3
Loading...
Searching...
No Matches
PaulowniaMallView.cpp
Go to the documentation of this file.
2#include "data/audioDb.hpp"
3#include "events/UIEvents.hpp"
4
8
13
15{
17 camConfig.initialAngle = ae::q20_12_t{1.5708 * 2};
18 camConfig.distance = ae::q20_12_t{1};
19 camConfig.height = height + ae::q20_12_t{0.4};
20 camConfig.lookAhead = ae::q20_12_t{0.2};
21 camConfig.angleIncrement = ae::q20_12_t{0.05};
22 camConfig.isRotationLocked = true;
23}
24
26{
27 movement->configureMovement(MovementConfig(PAULOWNIA_MALL_MAP_WIDTH,
28 PAULOWNIA_MALL_MAP_HEIGHT,
29 &paulownia_mall_map[0][0],
31 dbEntry->worldOffsetX,
32 dbEntry->worldOffsetZ,
34 speed,
35 height,
38}
39
41{
42 switch (tile)
43 {
44 // left
46 {
48 }
49
50 // right
52 {
54 }
55
56 // middle
65 {
66 return ViewState::STATION;
67 }
68 default:
69 {
70 break;
71 }
72 }
73
75}
76
82
84{
86
88 setupMenuHUD("Paulownia Mall");
89
90 std::array<UIScreen*, 5> screens = {menuHUDScreen, pauseMenuScreen};
91 std::array<UIMenu*, 10> menus = {pauseMenuCmpt};
92
93 ae::broadcastEvent(Event::ConfigureUIScreen{bgSub, bgMain, &oamSub, &oamMain, screens});
94 ae::broadcastEvent(Event::ConfigureUIMenu{textSub, menus});
95}
TileType
ViewState
Definition StateTypes.hpp:4
Events for UISystem.
std::array< int, 2 > bgMain
MenuHUDScreen * menuHUDScreen
MusicComponent * musicCmpt
const EnvironmentDbEntry * dbEntry
MovementComponent * movement
Event::ConfigureCamera camConfig
uint16_t * textVideoBuffer
std::array< int, 3 > bgSub
const ae::q20_12_t tileSize
void setupPauseMenu()
Sets up the pause menu.
uint16_t * textVideoBufferSub
PauseMenu * pauseMenuCmpt
TextComponent * text
void setupMenuHUD(const std::string &location)
Sets up the menu HUD.
TextComponent * textSub
PauseMenuScreen * pauseMenuScreen
ViewState onTileCheck(TileType tile, u32 pressed) override
const ae::q20_12_t height
void setupText() override
const Point2D< ae::q20_12_t > characterTranslate
void setupMusic() override
const ae::q20_12_t speed
void setupUI() override
void setupMovement() override
void setupCamera() override
const ae::q20_12_t characterFacingAngle
const Point2D< ae::q20_12_t > characterSize
All parameters needed to configure UIMenus.
Definition UIEvents.hpp:52
All parameters needed to configure UIScreens.
Definition UIEvents.hpp:22
A struct that holds initial config values for the MovementComponent.
A struct that holds initial config values for the TextComponent.