diff options
Diffstat (limited to 'game/code/presentation/gui/ingame/guiscreenhastransitions.h')
-rw-r--r-- | game/code/presentation/gui/ingame/guiscreenhastransitions.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/game/code/presentation/gui/ingame/guiscreenhastransitions.h b/game/code/presentation/gui/ingame/guiscreenhastransitions.h new file mode 100644 index 0000000..d175896 --- /dev/null +++ b/game/code/presentation/gui/ingame/guiscreenhastransitions.h @@ -0,0 +1,54 @@ +//=========================================================================== +// Copyright (C) 2000 Radical Entertainment Ltd. All rights reserved. +// +// Component: CGuiScreenHasTransitions +// +// Description: +// +// +// Authors: Tony Chu +// +// Revisions Date Author Revision +// 2003/03/19 Ian Gipson Created for SRR2 +// +//=========================================================================== + +#ifndef GUISCREENHASTRANSITIONS_H +#define GUISCREENHASTRANSITIONS_H + +//=========================================================================== +// Nested Includes +//=========================================================================== +#include <presentation/gui/guiscreen.h> + +//=========================================================================== +// Forward References +//=========================================================================== +#define MAX_TRANSITIONS 64 + +namespace GuiSFX +{ + class Transition; +} + +//=========================================================================== +// Interface Definitions +//=========================================================================== + +class CGuiScreenHasTransitions +{ +public: + CGuiScreenHasTransitions(); +protected: + void AddTransition( GuiSFX::Transition* transition ); + void AddTransition( GuiSFX::Transition& transition ); + void DoneAddingTransitions(); + void ResetMovableObjects(); + void ResetTransitions(); + void UpdateTransitions( const float deltaT ); +private: + GuiSFX::Transition* m_Transitions[ MAX_TRANSITIONS ]; + bool mDoneAddingTransitions; +}; + +#endif // GUISCREENHASTRANSITIONS_H |