#include <EnvironmentView.hpp>
|
| const unsigned int * | loadBitmap (const std::string &path, GraphicAsset &asset) |
| | Loads a single .grit asset and returns its raw tile pointer.
|
| void | setupEnvironment () |
| | Loads and uploads a room's environment geometry and textures, driven entirely by dbEntry.
|
| void | setupModel () |
Definition at line 42 of file EnvironmentView.hpp.
◆ cleanup()
| void EnvironmentView::cleanup |
( |
| ) |
|
|
overridevirtual |
◆ cleanupHook()
| virtual void EnvironmentView::cleanupHook |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ getCameraYOffset()
| virtual ae::q20_12_t EnvironmentView::getCameraYOffset |
( |
| ) |
const |
|
inlineprotectedvirtual |
◆ getEnvironmentDbEntry()
◆ init()
| void EnvironmentView::init |
( |
| ) |
|
|
overridevirtual |
One-time setup for a room.
- Note
- Resolves a room's EnvironmentDbEntry once into dbEntry. Everything below reads from that member instead of re-deriving it or relying on a per-room generated type. If no entry can be resolved, init() logs an error and returns immediately, since nothing below this point can run without a valid entry (setupEnvironment() immediately dereferences dbEntry->name).
Implements BaseView.
Definition at line 106 of file EnvironmentView.cpp.
◆ loadBitmap()
| const unsigned int * EnvironmentView::loadBitmap |
( |
const std::string & | path, |
|
|
GraphicAsset & | asset ) |
|
private |
Loads a single .grit asset and returns its raw tile pointer.
Stashes the owning GraphicAsset in asset so the caller can unload it once the texture has been uploaded to VRAM.
- Parameters
-
| path | Full path (base path + grit base name) of the asset to load. |
| asset | Output parameter that receives the loaded GraphicAsset, which the caller is responsible for unloading later. |
- Returns
- Raw pointer to the asset's tile data, reinterpreted as unsigned int, suitable for passing to the texture upload code.
Definition at line 40 of file EnvironmentView.cpp.
◆ onBattleStart()
| virtual void EnvironmentView::onBattleStart |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ onTileCheck()
◆ setupCamera()
| virtual void EnvironmentView::setupCamera |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ setupDialogue()
| virtual void EnvironmentView::setupDialogue |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ setupEnvironment()
| void EnvironmentView::setupEnvironment |
( |
| ) |
|
|
private |
Loads and uploads a room's environment geometry and textures, driven entirely by dbEntry.
- Note
- No per-room texture-slot code and no per-room generated class needed.
Loads each texture slot's texture assets to build display lists and upload textures to VRAM, then unloads the texture assets. Logs a message if environment loading fails, since a failed load otherwise leaves environments silently rendering nothing.
Definition at line 78 of file EnvironmentView.cpp.
◆ setupMenuHUD()
| void EnvironmentView::setupMenuHUD |
( |
const std::string & | location | ) |
|
|
protected |
Sets up the menu HUD.
- Parameters
-
| location | The location name shown on the HUD |
Definition at line 570 of file EnvironmentView.cpp.
◆ setupModel()
| void EnvironmentView::setupModel |
( |
| ) |
|
|
private |
◆ setupMovement()
| virtual void EnvironmentView::setupMovement |
( |
| ) |
|
|
protectedpure virtual |
◆ setupMusic()
| virtual void EnvironmentView::setupMusic |
( |
| ) |
|
|
protectedpure virtual |
◆ setupPauseMenu()
| void EnvironmentView::setupPauseMenu |
( |
| ) |
|
|
protected |
◆ setupText()
| virtual void EnvironmentView::setupText |
( |
| ) |
|
|
protectedpure virtual |
◆ setupUI()
| virtual void EnvironmentView::setupUI |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ startBattle()
| virtual void EnvironmentView::startBattle |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ update()
Per-frame update for this room's view.
- Note
- Advances the current ViewPhase, updates Controllers, and reports whether a phase transition to a different ViewState should occur.
- Returns
- ViewState::KEEP_CURRENT to remain on this view for another frame, or another ViewState value to signal that the caller should transition away from this view entirely.
Implements BaseView.
Definition at line 254 of file EnvironmentView.cpp.
◆ usesBaseFadeIn()
| bool EnvironmentView::usesBaseFadeIn |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ animationCtrl
◆ battleMenuCmpt
| BattleMenu* EnvironmentView::battleMenuCmpt = nullptr |
|
protected |
◆ bgMain
| std::array<int, 2> EnvironmentView::bgMain |
|
protected |
◆ bgSharedSub1
| int8_t EnvironmentView::bgSharedSub1 = -1 |
|
protected |
◆ bgSharedSub2
| int8_t EnvironmentView::bgSharedSub2 = -1 |
|
protected |
◆ bgSharedSub3
| int8_t EnvironmentView::bgSharedSub3 = -1 |
|
protected |
◆ bgSub
| std::array<int, 3> EnvironmentView::bgSub |
|
protected |
◆ camConfig
◆ camPos
◆ dbEntry
◆ dialogue
◆ dialogueFirstLine
| Dialogue* EnvironmentView::dialogueFirstLine = nullptr |
|
protected |
◆ dialogueScreen
◆ env
◆ environment
| ae::Entity* EnvironmentView::environment = nullptr |
|
protected |
◆ fontName
| std::string EnvironmentView::fontName = "cosmetica" |
|
protected |
◆ fontSize
| uint8_t EnvironmentView::fontSize = 12 |
|
protected |
◆ graphics
◆ isBattleMenuActive
| bool EnvironmentView::isBattleMenuActive = false |
|
protected |
◆ lineSpacing
| uint8_t EnvironmentView::lineSpacing = 0 |
|
protected |
◆ menuHUDScreen
◆ movement
◆ musicCmpt
◆ optionsFontName
| std::string EnvironmentView::optionsFontName = "noto-sans-jp-extra-bold" |
|
protected |
◆ optionsFontSize
| uint8_t EnvironmentView::optionsFontSize = 19 |
|
protected |
◆ pauseMenuCmpt
| PauseMenu* EnvironmentView::pauseMenuCmpt = nullptr |
|
protected |
◆ pauseMenuScreen
◆ phase
◆ prevBattleState
| bool EnvironmentView::prevBattleState = false |
|
protected |
◆ prevDialogueState
| bool EnvironmentView::prevDialogueState = false |
|
protected |
◆ prevEnvironmentState
| bool EnvironmentView::prevEnvironmentState = false |
|
protected |
◆ prevPauseState
| bool EnvironmentView::prevPauseState = false |
|
protected |
◆ promptDrawn
| bool EnvironmentView::promptDrawn = false |
|
protected |
◆ render
| RenderManager& EnvironmentView::render = RenderManager::getInstance() |
|
private |
◆ sfxCmpt
◆ text
◆ textSub
◆ textSubAlt
◆ textSubOptions
◆ textVideoBuffer
| uint16_t* EnvironmentView::textVideoBuffer = nullptr |
|
protected |
◆ textVideoBufferSub
| uint16_t* EnvironmentView::textVideoBufferSub = nullptr |
|
protected |
◆ tileSize
| const ae::q20_12_t EnvironmentView::tileSize {0.062500} |
|
protected |
◆ touch
| touchPosition EnvironmentView::touch |
|
protected |
The documentation for this class was generated from the following files: