OpenBarnyard
 
Loading...
Searching...
No Matches
ASlideshowState Class Reference

#include <ASlideshowState.h>

Inheritance diagram for ASlideshowState:
AGameState

Public Types

using ThisClass = ASlideshowState
 
using BaseClass = AGameState
 
- Public Types inherited from AGameState
enum  OVERLAY_ : OVERLAY { OVERLAY_1 , OVERLAY_2 , OVERLAY_3 , OVERLAY_NUMOF }
 
using OVERLAY = TUINT
 
using ThisClass = AGameState
 
using BaseClass = Toshi::TObject
 
template<class Result, class... Args>
using t_ExecuteForChildCb = Result ( AGameState::* )( Args... args )
 

Public Member Functions

virtual Toshi::TClass * GetClass () override
 
 ASlideshowState (const AGUISlideshow::Params &a_rSlideShowParams, AGameState *a_pNextGameState, TBOOL a_bShouldLocalise)
 
virtual TBOOL ProcessInput (const Toshi::TInputInterface::InputEvent *a_pInputEvent) override
 
virtual TBOOL ProcessCommand (AInputCommand a_eInputCommand, const Toshi::TInputInterface::InputEvent *a_pInputEvent, TBOOL &a_rStopEvents) override
 
virtual TBOOL OnUpdate (TFLOAT a_fDeltaTime) override
 
virtual void OnInsertion () override
 
virtual void OnActivate () override
 
virtual void OnDeactivate () override
 
void AddSlide (const Toshi::TPString8 &a_rName)
 
- Public Member Functions inherited from AGameState
 AGameState ()
 
 ~AGameState ()
 
virtual TBOOL Unknown1 (void *a_pUnk1, void *a_pUnk2)
 
virtual void Unknown2 (void *a_pUnk1)
 
virtual void Unknown3 (void *a_pUnk1)
 
virtual void Unknown4 (void *a_pUnk1)
 
virtual void Unknown5 ()
 
virtual TBOOL Unknown6 ()
 
virtual ASoundId GetSound ()
 
virtual TBOOL Unknown7 ()
 
virtual void Unknown8 ()
 
virtual void OnStarted ()
 
virtual void Unknown10 ()
 
virtual void Unknown11 (void *a_pUnk1, void *a_pUnk2)
 
virtual void Unknown12 (void *a_pUnk1, void *a_pUnk2)
 
virtual TFLOAT GetFOV ()
 
virtual void OnRemoval ()
 
virtual void OnSuspend ()
 
virtual void OnResume (AGameState *a_pPreviousState)
 
TBOOL SendInputCommands (const Toshi::TInputInterface::InputEvent *a_pEvent)
 
void SetInputMap (const Toshi::TPString8 &a_MapName)
 
void Activate ()
 
void Deactivate ()
 
void Suspend ()
 
void Remove ()
 
void Destroy ()
 
void Destroy (TBOOL a_bDeactivate)
 
void SetOverlay (OVERLAY a_eOverlay)
 
OVERLAY GetOverlay () const
 
template<class RetT, class... Args>
void ExecuteForAllChildStates (t_ExecuteForChildCb< RetT, Args... > a_fnCallback, TUINT32 a_uiOffset, Args... args)
 
template<class... Args>
TBOOL ExecuteForOneChildState (t_ExecuteForChildCb< TBOOL, Args... > a_fnCallback, TUINT32 a_uiOffset, Args... args)
 

Static Public Member Functions

static Toshi::TObject * CreateTObject ()
 
static Toshi::TObject * CreateTObjectInPlace (void *a_pPtr)
 
static void InitialiseClass ()
 
static void DeinitialiseClass ()
 
static __forceinline Toshi::TClass * GetClassStatic ()
 
- Static Public Member Functions inherited from AGameState
static Toshi::TObject * CreateTObject ()
 
static Toshi::TObject * CreateTObjectInPlace (void *a_pPtr)
 
static void InitialiseClass ()
 
static void DeinitialiseClass ()
 
static __forceinline Toshi::TClass * GetClassStatic ()
 

Static Public Attributes

static constexpr Toshi::TClass * PARENTCLASS = & AGameState::ms_oClass
 
static Toshi::TClass ms_oClass = Toshi::TClass( "ASlideshowState", ASlideshowState::PARENTCLASS, ASlideshowState::CreateTObject, ASlideshowState::CreateTObjectInPlace, ASlideshowState::InitialiseClass, ASlideshowState::DeinitialiseClass, 0, 1, sizeof( ASlideshowState ), alignof( ASlideshowState ) )
 
- Static Public Attributes inherited from AGameState
static constexpr Toshi::TClass * PARENTCLASS = & Toshi::TObject::ms_oClass
 
static Toshi::TClass ms_oClass = Toshi::TClass( "AGameState", AGameState::PARENTCLASS, AGameState::CreateTObject, AGameState::CreateTObjectInPlace, AGameState::InitialiseClass, AGameState::DeinitialiseClass, 0, 1, sizeof( AGameState ), alignof( AGameState ) )
 

Additional Inherited Members

- Protected Attributes inherited from AGameState
HUDParams m_HUDParams
 
OVERLAY m_eOverlayColorIndex
 
Toshi::T2DList< AGameStatem_ChildStates
 
AInputMapm_pInputMap
 
AGameStatem_pOwnerState
 
TBOOL m_bWasInserted
 
TBOOL m_bIsActivated
 
AGUI2Element m_GUIElement
 
TFLOAT m_fFOV
 

Detailed Description

Definition at line 6 of file ASlideshowState.h.

Member Typedef Documentation

◆ BaseClass

Definition at line 9 of file ASlideshowState.h.

◆ ThisClass

Definition at line 9 of file ASlideshowState.h.

Constructor & Destructor Documentation

◆ ASlideshowState()

ASlideshowState::ASlideshowState ( const AGUISlideshow::Params & a_rSlideShowParams,
AGameState * a_pNextGameState,
TBOOL a_bShouldLocalise )

Definition at line 14 of file ASlideshowState.cpp.

15{
16 m_pNextState = a_pNextGameState;
17 m_pInputMap = AInputMapManager::GetSingleton()->FindMap( TPS8( ASlideshowState ) );
18 m_Slideshow.Setup( &m_HUDParams, a_rSlideShowParams, a_bShouldLocalise );
19}
#define TPS8(STR)
Definition TPString8.h:16
AInputMap * m_pInputMap
Definition AGameState.h:138
HUDParams m_HUDParams
Definition AGameState.h:135
ASlideshowState(const AGUISlideshow::Params &a_rSlideShowParams, AGameState *a_pNextGameState, TBOOL a_bShouldLocalise)

Member Function Documentation

◆ AddSlide()

void ASlideshowState::AddSlide ( const Toshi::TPString8 & a_rName)

Definition at line 90 of file ASlideshowState.cpp.

91{
92 m_Slideshow.AddSlide( a_rName );
93}

◆ CreateTObject()

Toshi::TObject * ASlideshowState::CreateTObject ( )
static

Definition at line 11 of file ASlideshowState.cpp.

◆ CreateTObjectInPlace()

Toshi::TObject * ASlideshowState::CreateTObjectInPlace ( void * a_pPtr)
static

Definition at line 11 of file ASlideshowState.cpp.

◆ DeinitialiseClass()

void ASlideshowState::DeinitialiseClass ( )
static

Definition at line 11 of file ASlideshowState.cpp.

◆ GetClass()

Toshi::TClass * ASlideshowState::GetClass ( )
overridevirtual

Reimplemented from AGameState.

Definition at line 11 of file ASlideshowState.cpp.

◆ GetClassStatic()

static __forceinline Toshi::TClass * ASlideshowState::GetClassStatic ( )
inlinestatic

Definition at line 9 of file ASlideshowState.h.

◆ InitialiseClass()

void ASlideshowState::InitialiseClass ( )
static

Definition at line 11 of file ASlideshowState.cpp.

◆ OnActivate()

void ASlideshowState::OnActivate ( )
overridevirtual

Reimplemented from AGameState.

Definition at line 77 of file ASlideshowState.cpp.

78{
79 m_Slideshow.Activate();
81}
virtual void OnActivate()

◆ OnDeactivate()

void ASlideshowState::OnDeactivate ( )
overridevirtual

Reimplemented from AGameState.

Definition at line 83 of file ASlideshowState.cpp.

84{
85 m_Slideshow.Deactivate();
86 m_Slideshow.Reset();
88}
virtual void OnDeactivate()

◆ OnInsertion()

void ASlideshowState::OnInsertion ( )
overridevirtual

Reimplemented from AGameState.

Definition at line 59 of file ASlideshowState.cpp.

60{
61 if ( !m_Slideshow.HasSlides() )
62 {
63 if ( m_pNextState )
64 {
65 AGameStateController::GetSingleton()->ReplaceState( m_pNextState );
66 }
67 else
68 {
70 }
71 }
72
73 AInputMapManager::GetSingleton()->SetMap( TPS8( ASlideshowState ) );
75}
virtual void OnInsertion()
void Remove()

◆ OnUpdate()

TBOOL ASlideshowState::OnUpdate ( TFLOAT a_fDeltaTime)
overridevirtual

Reimplemented from AGameState.

Definition at line 36 of file ASlideshowState.cpp.

37{
38 m_Slideshow.Update( a_fDeltaTime );
39
40 if ( m_Slideshow.IsSlideshowOver() )
41 {
42 if ( m_pNextState )
43 {
44 AGameStateController::GetSingleton()->ReplaceState( m_pNextState );
45 return TTRUE;
46 }
47 else
48 {
50 return TTRUE;
51 }
52 }
53 else
54 {
55 return AGameState::OnUpdate( a_fDeltaTime );
56 }
57}
#define TTRUE
Definition Typedefs.h:25
virtual TBOOL OnUpdate(TFLOAT a_fDeltaTime)

◆ ProcessCommand()

TBOOL ASlideshowState::ProcessCommand ( AInputCommand a_eInputCommand,
const Toshi::TInputInterface::InputEvent * a_pInputEvent,
TBOOL & a_rStopEvents )
overridevirtual

Reimplemented from AGameState.

Definition at line 31 of file ASlideshowState.cpp.

32{
33 return m_Slideshow.ProcessCommand( a_eInputCommand );
34}

◆ ProcessInput()

TBOOL ASlideshowState::ProcessInput ( const Toshi::TInputInterface::InputEvent * a_pInputEvent)
overridevirtual

Reimplemented from AGameState.

Definition at line 21 of file ASlideshowState.cpp.

22{
23 if ( m_Slideshow.ProcessInput( a_pInputEvent ) )
24 {
25 return TTRUE;
26 }
27
28 return AGameState::ProcessInput( a_pInputEvent );
29}
virtual TBOOL ProcessInput(const Toshi::TInputInterface::InputEvent *a_pInputEvent)

Member Data Documentation

◆ ms_oClass

Definition at line 9 of file ASlideshowState.h.

◆ PARENTCLASS

Toshi::TClass* ASlideshowState::PARENTCLASS = & AGameState::ms_oClass
staticconstexpr

Definition at line 9 of file ASlideshowState.h.


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