OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
VideoState Class Reference

#include <VideoState.h>

Inheritance diagram for VideoState:
FsmState FsmEventHandler PlatformEventFilter

Public Types

enum class  Type { VIDEO_LOGO , VIDEO_INTRO }
 

Public Member Functions

 VideoState (Type type, std::string_view videoFileName)
 
virtual FsmAction update () override
 
virtual FsmAction enter () override
 Invoked within Fsm::update() when transitioning to this state as the new current state. More...
 
virtual void exit () override
 Invoked within Fsm::update() when this state is replaced by a new current state. More...
 
- Public Member Functions inherited from FsmState
virtual ~FsmState ()=default
 
virtual FsmAction update ()=0
 
virtual FsmAction enter ()=0
 Invoked within Fsm::update() when transitioning to this state as the new current state. More...
 
virtual void exit ()=0
 Invoked within Fsm::update() when this state is replaced by a new current state. More...
 
- Public Member Functions inherited from FsmEventHandler
 FsmEventHandler ()
 
- Public Member Functions inherited from PlatformEventFilter
 PlatformEventFilter (std::initializer_list< PlatformEventType > eventTypes)
 
 PlatformEventFilter (PlatformEventWildcard eventTypes)
 
virtual bool event (const PlatformEvent *event)
 
const std::vector< PlatformEventTypeeventTypes () const
 

Private Member Functions

virtual bool mousePressEvent (const PlatformMouseEvent *event) override
 
virtual bool keyPressEvent (const PlatformKeyEvent *event) override
 

Private Attributes

Type _type
 
std::string _videoFileName
 
std::unique_ptr< IMovie_movie
 
ScreenType _previousScreenType {}
 
bool _isPaused {}
 
bool _skipVideo {}
 

Additional Inherited Members

- Protected Member Functions inherited from PlatformEventFilter
virtual bool keyPressEvent (const PlatformKeyEvent *event)
 
virtual bool keyReleaseEvent (const PlatformKeyEvent *event)
 
virtual bool mouseMoveEvent (const PlatformMouseEvent *event)
 
virtual bool mousePressEvent (const PlatformMouseEvent *event)
 
virtual bool mouseReleaseEvent (const PlatformMouseEvent *event)
 
virtual bool wheelEvent (const PlatformWheelEvent *event)
 
virtual bool moveEvent (const PlatformMoveEvent *event)
 
virtual bool resizeEvent (const PlatformResizeEvent *event)
 
virtual bool activationEvent (const PlatformWindowEvent *event)
 
virtual bool closeEvent (const PlatformWindowEvent *event)
 
virtual bool gamepadConnectionEvent (const PlatformGamepadEvent *event)
 
virtual bool gamepadKeyPressEvent (const PlatformGamepadKeyEvent *event)
 
virtual bool gamepadKeyReleaseEvent (const PlatformGamepadKeyEvent *event)
 
virtual bool gamepadAxisEvent (const PlatformGamepadAxisEvent *event)
 
virtual bool nativeEvent (const PlatformNativeEvent *event)
 
virtual bool textInputEvent (const PlatformTextInputEvent *event)
 

Member Enumeration Documentation

◆ Type

enum class VideoState::Type
strong
Enumerator
VIDEO_LOGO 
VIDEO_INTRO 

Constructor & Destructor Documentation

◆ VideoState()

VideoState::VideoState ( VideoState::Type  type,
std::string_view  videoFileName 
)
explicit

Member Function Documentation

◆ enter()

FsmAction VideoState::enter ( )
overridevirtual

Invoked within Fsm::update() when transitioning to this state as the new current state.

Implements FsmState.

◆ exit()

void VideoState::exit ( )
overridevirtual

Invoked within Fsm::update() when this state is replaced by a new current state.

Implements FsmState.

◆ keyPressEvent()

bool VideoState::keyPressEvent ( const PlatformKeyEvent event)
overrideprivatevirtual

Reimplemented from PlatformEventFilter.

◆ mousePressEvent()

bool VideoState::mousePressEvent ( const PlatformMouseEvent event)
overrideprivatevirtual

Reimplemented from PlatformEventFilter.

◆ update()

FsmAction VideoState::update ( )
overridevirtual

Implements FsmState.

Member Data Documentation

◆ _isPaused

bool VideoState::_isPaused {}
private

◆ _movie

std::unique_ptr<IMovie> VideoState::_movie
private

◆ _previousScreenType

ScreenType VideoState::_previousScreenType {}
private

◆ _skipVideo

bool VideoState::_skipVideo {}
private

◆ _type

Type VideoState::_type
private

◆ _videoFileName

std::string VideoState::_videoFileName
private

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