Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
WindowVideoManager Class Reference

#include <WindowVideoManager.h>

Inherits SubsystemInterface.

Public Member Functions

 WindowVideoManager (void)
 
 ~WindowVideoManager (void)
 
virtual void init (void)
 
virtual void reset (void)
 
virtual void update (void)
 
void playMovie (GameWindow *win, AsciiString movieName, WindowVideoPlayType playType)
 
void hideMovie (GameWindow *win)
 If the window becomes hidden while we're playing, stop the movie but test to see if we should resume.
 
void pauseMovie (GameWindow *win)
 Pause a movie and display it's current frame.
 
void resumeMovie (GameWindow *win)
 If a movie has been stopped, resume it.
 
void stopMovie (GameWindow *win)
 Stop a movie.
 
void stopAndRemoveMovie (GameWindow *win)
 Stop a movie, and remove it from the manager.
 
void stopAllMovies (void)
 Stop all playing movies.
 
void pauseAllMovies (void)
 Pauses all movies on their current frame.
 
void resumeAllMovies (void)
 Resume Playing all movies.
 
Int getWinState (GameWindow *win)
 return the current state of the window.
 
- Public Member Functions inherited from SubsystemInterface
 SubsystemInterface ()
 
virtual ~SubsystemInterface ()
 
virtual void postProcessLoad ()
 
virtual void draw (void)
 
void UPDATE (void)
 
void DRAW (void)
 
AsciiString getName (void)
 
void setName (AsciiString name)
 

Additional Inherited Members

- Protected Attributes inherited from SubsystemInterface
AsciiString m_name
 

Detailed Description

Definition at line 122 of file WindowVideoManager.h.

Constructor & Destructor Documentation

◆ WindowVideoManager()

WindowVideoManager::WindowVideoManager ( void )

Definition at line 137 of file WindowVideoManager.cpp.

◆ ~WindowVideoManager()

WindowVideoManager::~WindowVideoManager ( void )

Definition at line 154 of file WindowVideoManager.cpp.

Member Function Documentation

◆ getWinState()

Int WindowVideoManager::getWinState ( GameWindow * win)

return the current state of the window.

Definition at line 406 of file WindowVideoManager.cpp.

◆ hideMovie()

void WindowVideoManager::hideMovie ( GameWindow * win)

If the window becomes hidden while we're playing, stop the movie but test to see if we should resume.

Definition at line 311 of file WindowVideoManager.cpp.

◆ init()

void WindowVideoManager::init ( void )
virtual
  • Assign any default values to data required for the class
    • Allocate any memory and resources needed throughout the lifetime of the class

Implements SubsystemInterface.

Definition at line 169 of file WindowVideoManager.cpp.

◆ pauseAllMovies()

void WindowVideoManager::pauseAllMovies ( void )

Pauses all movies on their current frame.

Definition at line 375 of file WindowVideoManager.cpp.

◆ pauseMovie()

void WindowVideoManager::pauseMovie ( GameWindow * win)

Pause a movie and display it's current frame.

Definition at line 300 of file WindowVideoManager.cpp.

◆ playMovie()

void WindowVideoManager::playMovie ( GameWindow * win,
AsciiString movieName,
WindowVideoPlayType playType )

Definition at line 256 of file WindowVideoManager.cpp.

◆ reset()

void WindowVideoManager::reset ( void )
virtual
  • Any system should be able to reset all data and go back to an empty state that is ready to accept a completely new set of data. Reset() can expect to be used in the context of resetting the engine in order to start or load a new game.
    • Do NOT free and re-allocate resources needed, where possible reorganize and re-initialize the resources already allocated.
    • After a reset, the system does not need to be in EXACTLY the same state as a fresh instantiation. If there are persistent state information for the system make sure you maintain it while restoring or re-initializing other transient parts.

Implements SubsystemInterface.

Definition at line 177 of file WindowVideoManager.cpp.

◆ resumeAllMovies()

void WindowVideoManager::resumeAllMovies ( void )

Resume Playing all movies.

Definition at line 391 of file WindowVideoManager.cpp.

◆ resumeMovie()

void WindowVideoManager::resumeMovie ( GameWindow * win)

If a movie has been stopped, resume it.

Definition at line 322 of file WindowVideoManager.cpp.

◆ stopAllMovies()

void WindowVideoManager::stopAllMovies ( void )

Stop all playing movies.

Definition at line 359 of file WindowVideoManager.cpp.

◆ stopAndRemoveMovie()

void WindowVideoManager::stopAndRemoveMovie ( GameWindow * win)

Stop a movie, and remove it from the manager.

Definition at line 346 of file WindowVideoManager.cpp.

◆ stopMovie()

void WindowVideoManager::stopMovie ( GameWindow * win)

Stop a movie.

Definition at line 335 of file WindowVideoManager.cpp.

◆ update()

void WindowVideoManager::update ( void )
virtual
  • Update methods are the place to do system per frame processing. You should call the system update once each time through the game loop to service the system.
    • Note that currently the GameClient and GameLogic will be updating at different rates where the logic is running real time, and the client will adjust how many loops can be done during one server time slice in order to improve performance on low end machines.

Implements SubsystemInterface.

Definition at line 193 of file WindowVideoManager.cpp.


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