2004-06-08 05:22:33 +00:00
|
|
|
/* ScreenSelect - Base class for Style, Difficulty, and Mode selection screens. */
|
2003-03-03 10:03:02 +00:00
|
|
|
|
2004-06-08 05:22:33 +00:00
|
|
|
#ifndef SCREEN_SELECT_H
|
|
|
|
|
#define SCREEN_SELECT_H
|
2003-03-03 10:03:02 +00:00
|
|
|
|
2004-05-01 23:19:33 +00:00
|
|
|
#include "ScreenWithMenuElements.h"
|
2004-12-02 06:29:20 +00:00
|
|
|
#include "GameCommand.h"
|
2004-01-25 16:31:38 +00:00
|
|
|
#include "CodeDetector.h"
|
2005-01-04 11:06:12 +00:00
|
|
|
#include "ThemeMetric.h"
|
2003-03-03 10:03:02 +00:00
|
|
|
|
2004-05-01 23:19:33 +00:00
|
|
|
class ScreenSelect : public ScreenWithMenuElements
|
2003-03-03 10:03:02 +00:00
|
|
|
{
|
|
|
|
|
public:
|
2005-02-23 06:29:05 +00:00
|
|
|
virtual void Init();
|
2005-09-21 17:23:11 +00:00
|
|
|
virtual void BeginScreen();
|
2003-03-03 10:03:02 +00:00
|
|
|
virtual ~ScreenSelect();
|
|
|
|
|
|
|
|
|
|
virtual void Update( float fDelta );
|
|
|
|
|
virtual void DrawPrimitives();
|
2005-09-05 02:26:50 +00:00
|
|
|
virtual void Input( const InputEventPlus &input );
|
2003-03-03 10:03:02 +00:00
|
|
|
virtual void HandleScreenMessage( const ScreenMessage SM );
|
2006-01-22 01:00:06 +00:00
|
|
|
virtual void HandleMessage( const RString &sMessage );
|
2003-12-04 04:28:19 +00:00
|
|
|
|
2006-09-15 01:47:24 +00:00
|
|
|
virtual void MenuBack( const InputEventPlus &input );
|
2005-03-13 04:25:43 +00:00
|
|
|
|
2003-03-03 10:03:02 +00:00
|
|
|
protected:
|
|
|
|
|
virtual int GetSelectionIndex( PlayerNumber pn ) = 0;
|
|
|
|
|
virtual void UpdateSelectableChoices() = 0; // derived screens must handle this
|
|
|
|
|
|
2004-12-02 06:29:20 +00:00
|
|
|
vector<GameCommand> m_aGameCommands; // derived classes should look here for what choices are available
|
2004-01-25 16:31:38 +00:00
|
|
|
|
|
|
|
|
vector<CodeItem> m_aCodes;
|
2004-12-02 06:29:20 +00:00
|
|
|
vector<GameCommand> m_aCodeChoices;
|
2006-01-22 01:00:06 +00:00
|
|
|
vector<RString> m_asSubscribedMessages;
|
2005-01-04 11:06:12 +00:00
|
|
|
|
|
|
|
|
RageTimer m_timerIdleComment; // count up to time between idle comment announcer sounds
|
|
|
|
|
RageTimer m_timerIdleTimeout; // count up to go to the timeout screen
|
|
|
|
|
|
|
|
|
|
ThemeMetric<float> IDLE_COMMENT_SECONDS;
|
|
|
|
|
ThemeMetric<float> IDLE_TIMEOUT_SECONDS;
|
2005-08-14 04:33:32 +00:00
|
|
|
ThemeMetric<bool> ALLOW_DISABLED_PLAYER_INPUT;
|
2005-07-12 04:13:03 +00:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
bool m_bTimeToFinalizePlayers;
|
2003-03-03 10:03:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|
2004-06-08 05:22:33 +00:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* (c) 2001-2004 Chris Danford
|
|
|
|
|
* All rights reserved.
|
|
|
|
|
*
|
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
|
|
|
* copy of this software and associated documentation files (the
|
|
|
|
|
* "Software"), to deal in the Software without restriction, including
|
|
|
|
|
* without limitation the rights to use, copy, modify, merge, publish,
|
|
|
|
|
* distribute, and/or sell copies of the Software, and to permit persons to
|
|
|
|
|
* whom the Software is furnished to do so, provided that the above
|
|
|
|
|
* copyright notice(s) and this permission notice appear in all copies of
|
|
|
|
|
* the Software and that both the above copyright notice(s) and this
|
|
|
|
|
* permission notice appear in supporting documentation.
|
|
|
|
|
*
|
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
|
|
|
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
|
|
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
|
|
|
|
|
* THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS
|
|
|
|
|
* INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT
|
|
|
|
|
* OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
|
|
|
|
* OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
|
|
* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
|
|
* PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
|
*/
|