2#include <game/bases/d_base.hpp>
4#include <game/sLib/s_Phase.hpp>
The minimum required implementation for a base.
virtual int preExecute()
Code to be executed before execute.
static void setFadeInFrame(unsigned short length)
Sets the duration of the next fade-in transition to length.
static void setStartScene()
Sets up the scene to be shown when the game boots up.
virtual void postExecute(fBase_c::MAIN_STATE_e status)
See dBase_c::postExecute.
virtual void postDelete(fBase_c::MAIN_STATE_e status)
See dBase_c::postDelete.
static dScene_c * createNextScene()
Creates and returns a root base for the next scene.
virtual int preDraw()
See dBase_c::preDraw.
static void setFadeOutFrame(unsigned short length)
Sets the duration of the next fade-out transition to length.
virtual void postDraw(fBase_c::MAIN_STATE_e status)
See dBase_c::postDraw.
static bool m_isAutoFadeIn
If a fade-in should automatically be performed on scene load.
virtual void postCreate(fBase_c::MAIN_STATE_e status)
Code to be executed after create.
sPhase_c * mpPhase
The phase to be completed before preExecute succeeds.
static ProfileName m_nextScene
The profile name of the next scene.
virtual int preDelete()
See dBase_c::preDelete.
static u16 m_fadeInFrame
The duration of the next fade-in.
static bool m_otherSceneFlg
Whether the next scene has already been created.
static void setResetScene()
Sets up the scene to be shown after a game reset.
static u32 mPara
The parameters for the next scene.
static ProfileName m_nowScene
The profile name of the current scene.
virtual int preCreate()
See dBase_c::preCreate.
static u16 m_fadeOutFrame
The duration of the next fade-out.
static void setFadeInOutFrame(unsigned short length)
Sets the duration of the next fade-in and fade-out transitions to length.
static void setNextScene(ProfileName nextScene, unsigned long param, bool forceChange)
Attempts to prepare the transition to a new state.
static ProfileName m_oldScene
The profile name of the previous scene.
MAIN_STATE_e
The possible operation results.
A phase is a list of methods to be called in order.
u16 ProfileName
The name of a profile. Value is a fProfile::PROFILE_NAME_e.