persona-3-dual
A DS demake of Persona 3
Loading...
Searching...
No Matches
IwatodaiStreetsView Class Reference

#include <IwatodaiStreetsView.hpp>

Inheritance diagram for IwatodaiStreetsView:
Collaboration diagram for IwatodaiStreetsView:

Public Member Functions

 IwatodaiStreetsView ()
 ~IwatodaiStreetsView ()
Public Member Functions inherited from EnvironmentView
void init () override
 One-time setup for a room.
ViewState update () override
 Per-frame update for this room's view.
void cleanup () override
 Tears down everything a room's view had set up.
bool usesBaseFadeIn () const override
 Whether BaseView should drive a dual-engine brightness fade-in.
Public Member Functions inherited from BaseView
virtual ~BaseView ()=default
void startFadeIn ()
void updateFadeIn ()

Protected Member Functions

const EnvironmentDbEntry * getEnvironmentDbEntry () override
void setupMovement () override
void setupMusic () override
ViewState onTileCheck (TileType tile, u32 pressed) override
void setupCamera () override
void setupText () override
void setupUI () override
void startBattle () override
Protected Member Functions inherited from EnvironmentView
virtual ae::q20_12_t getCameraYOffset () const
void setupPauseMenu ()
 Sets up the pause menu.
void setupMenuHUD (const std::string &location)
 Sets up the menu HUD.
virtual void setupDialogue ()
virtual void cleanupHook ()
virtual ViewState onTileCheck (TileType tile, uint32_t pressed)=0
virtual void onBattleStart ()

Private Attributes

const Point2D< ae::q20_12_t > characterSize {ae::q20_12_t{0.1}, ae::q20_12_t{0.1}}
const ae::q20_12_t speed {0.03}
const Point2D< ae::q20_12_t > characterTranslate {ae::q20_12_t{0.6}, ae::q20_12_t{0.6}}
const ae::q20_12_t height {0.05}
const ae::q20_12_t characterFacingAngle {0}
etl::vector< CharacterProfile, 4 > characterProfiles
etl::vector< EnemyProfile, 8 > enemyProfiles
BattleStartCondition battleStartCondition = BattleStartCondition::Even

Additional Inherited Members

Protected Attributes inherited from EnvironmentView
touchPosition touch
int8_t bgSharedSub1 = -1
int8_t bgSharedSub2 = -1
int8_t bgSharedSub3 = -1
ViewPhase phase = ViewPhase::ENVIRONMENT
bool prevPauseState = false
bool prevDialogueState = false
bool prevEnvironmentState = false
bool prevBattleState = false
bool isBattleMenuActive = false
bool promptDrawn = false
Event::CameraPosition camPos
const ae::q20_12_t tileSize {0.062500}
Event::ConfigureCamera camConfig
MovementComponent * movement = nullptr
DialogueComponent * dialogue = nullptr
ae::Entity * environment = nullptr
GraphicsComponent * graphics = nullptr
TextComponent * text = nullptr
TextComponent * textSub = nullptr
TextComponent * textSubAlt = nullptr
TextComponent * textSubOptions = nullptr
AnimationController * animationCtrl = AnimationController::getInstance()
MusicComponent * musicCmpt = nullptr
SFXComponent * sfxCmpt = nullptr
DialogueScreen * dialogueScreen = nullptr
MenuHUDScreen * menuHUDScreen = nullptr
PauseMenuScreen * pauseMenuScreen = nullptr
BattleMenu * battleMenuCmpt = nullptr
PauseMenu * pauseMenuCmpt = nullptr
std::array< int, 2 > bgMain
std::array< int, 3 > bgSub
Environment env
const EnvironmentDbEntry * dbEntry = nullptr
uint16_t * textVideoBuffer = nullptr
uint16_t * textVideoBufferSub = nullptr
std::string fontName = "cosmetica"
uint8_t fontSize = 12
std::string optionsFontName = "noto-sans-jp-extra-bold"
uint8_t optionsFontSize = 19
uint8_t lineSpacing = 0
Dialogue * dialogueFirstLine = nullptr

Detailed Description

Definition at line 17 of file IwatodaiStreetsView.hpp.

Constructor & Destructor Documentation

◆ IwatodaiStreetsView()

IwatodaiStreetsView::IwatodaiStreetsView ( )

Definition at line 8 of file IwatodaiStreetsView.cpp.

◆ ~IwatodaiStreetsView()

IwatodaiStreetsView::~IwatodaiStreetsView ( )

Definition at line 18 of file IwatodaiStreetsView.cpp.

Member Function Documentation

◆ getEnvironmentDbEntry()

const EnvironmentDbEntry * IwatodaiStreetsView::getEnvironmentDbEntry ( )
inlineoverrideprotectedvirtual

Implements EnvironmentView.

Definition at line 25 of file IwatodaiStreetsView.hpp.

◆ onTileCheck()

ViewState IwatodaiStreetsView::onTileCheck ( TileType tile,
u32 pressed )
overrideprotected

Definition at line 64 of file IwatodaiStreetsView.cpp.

◆ setupCamera()

void IwatodaiStreetsView::setupCamera ( )
overrideprotectedvirtual

Reimplemented from EnvironmentView.

Definition at line 33 of file IwatodaiStreetsView.cpp.

◆ setupMovement()

void IwatodaiStreetsView::setupMovement ( )
overrideprotectedvirtual

Implements EnvironmentView.

Definition at line 44 of file IwatodaiStreetsView.cpp.

◆ setupMusic()

void IwatodaiStreetsView::setupMusic ( )
overrideprotectedvirtual

Implements EnvironmentView.

Definition at line 59 of file IwatodaiStreetsView.cpp.

◆ setupText()

void IwatodaiStreetsView::setupText ( )
overrideprotectedvirtual

Implements EnvironmentView.

Definition at line 116 of file IwatodaiStreetsView.cpp.

◆ setupUI()

void IwatodaiStreetsView::setupUI ( )
overrideprotectedvirtual

Reimplemented from EnvironmentView.

Definition at line 122 of file IwatodaiStreetsView.cpp.

Here is the call graph for this function:

◆ startBattle()

void IwatodaiStreetsView::startBattle ( )
overrideprotectedvirtual

Reimplemented from EnvironmentView.

Definition at line 24 of file IwatodaiStreetsView.cpp.

Member Data Documentation

◆ battleStartCondition

BattleStartCondition IwatodaiStreetsView::battleStartCondition = BattleStartCondition::Even
private

Definition at line 59 of file IwatodaiStreetsView.hpp.

◆ characterFacingAngle

const ae::q20_12_t IwatodaiStreetsView::characterFacingAngle {0}
private

Definition at line 53 of file IwatodaiStreetsView.hpp.

◆ characterProfiles

etl::vector<CharacterProfile, 4> IwatodaiStreetsView::characterProfiles
private

Definition at line 56 of file IwatodaiStreetsView.hpp.

◆ characterSize

const Point2D<ae::q20_12_t> IwatodaiStreetsView::characterSize {ae::q20_12_t{0.1}, ae::q20_12_t{0.1}}
private

Definition at line 47 of file IwatodaiStreetsView.hpp.

◆ characterTranslate

const Point2D<ae::q20_12_t> IwatodaiStreetsView::characterTranslate {ae::q20_12_t{0.6}, ae::q20_12_t{0.6}}
private

Definition at line 51 of file IwatodaiStreetsView.hpp.

◆ enemyProfiles

etl::vector<EnemyProfile, 8> IwatodaiStreetsView::enemyProfiles
private

Definition at line 57 of file IwatodaiStreetsView.hpp.

◆ height

const ae::q20_12_t IwatodaiStreetsView::height {0.05}
private

Definition at line 52 of file IwatodaiStreetsView.hpp.

◆ speed

const ae::q20_12_t IwatodaiStreetsView::speed {0.03}
private

Definition at line 48 of file IwatodaiStreetsView.hpp.


The documentation for this class was generated from the following files: