OpenBarnyard
 
Loading...
Searching...
No Matches
ASlideshowState.h
Go to the documentation of this file.
1#pragma once
2#include "AGameState.h"
3#include "GUI/AGUISlideshow.h"
5
7{
8public:
10
11public:
12 ASlideshowState( const AGUISlideshow::Params& a_rSlideShowParams, AGameState* a_pNextGameState, TBOOL a_bShouldLocalise );
13
14 //-----------------------------------------------------------------------------
15 // AGameState
16 //-----------------------------------------------------------------------------
17 virtual TBOOL ProcessInput( const Toshi::TInputInterface::InputEvent* a_pInputEvent ) override;
18 virtual TBOOL ProcessCommand( AInputCommand a_eInputCommand, const Toshi::TInputInterface::InputEvent* a_pInputEvent, TBOOL& a_rStopEvents ) override;
19 virtual TBOOL OnUpdate( TFLOAT a_fDeltaTime ) override;
20 virtual void OnInsertion() override;
21 virtual void OnActivate() override;
22 virtual void OnDeactivate() override;
23
24 void AddSlide( const Toshi::TPString8& a_rName );
25
26private:
27 AGUISlideshow m_Slideshow;
28 AGameState* m_pNextState;
29};
#define TDECLARE_CLASS(THIS_CLASS, PARENT_CLASS)
Definition TObject.h:38
float TFLOAT
Definition Typedefs.h:4
bool TBOOL
Definition Typedefs.h:6
AInputCommand
Definition AInputMap.h:12
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 void OnDeactivate() override
ASlideshowState(const AGUISlideshow::Params &a_rSlideShowParams, AGameState *a_pNextGameState, TBOOL a_bShouldLocalise)
virtual TBOOL OnUpdate(TFLOAT a_fDeltaTime) override
void AddSlide(const Toshi::TPString8 &a_rName)
virtual void OnInsertion() override
virtual void OnActivate() override