Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

ScreenNetRoom.h

Go to the documentation of this file.
00001 /* ScreenNetSelectMusic - A method for Online/Net song selection */ 00002 00003 #ifndef SCREENNETROOM_H 00004 #define SCREENNETROOM_H 00005 00006 #include "ScreenWithMenuElements.h" 00007 #include "ScreenNetSelectBase.h" 00008 #include <vector> 00009 00010 class ScreenNetRoom : public ScreenNetSelectBase 00011 { 00012 public: 00013 ScreenNetRoom( const CString& sName ); 00014 virtual void Input( const DeviceInput& DeviceI, const InputEventType type, 00015 const GameInput& GameI, const MenuInput& MenuI, 00016 const StyleInput& StyleI ); 00017 virtual void HandleScreenMessage( const ScreenMessage SM ); 00018 00019 protected: 00020 virtual void MenuStart( PlayerNumber pn ); 00021 virtual void MenuUp( PlayerNumber pn, const InputEventType type ); 00022 virtual void MenuDown( PlayerNumber pn, const InputEventType type ); 00023 virtual void MenuBack( PlayerNumber pn ); 00024 00025 virtual void TweenOffScreen( ); 00026 virtual void Update( float fDeltaTime ); 00027 00028 private: 00029 void UpdateRoomsList(); 00030 void MenuLeft( PlayerNumber pn, const InputEventType type ); 00031 void MenuRight( PlayerNumber pn, const InputEventType type ); 00032 void CreateNewRoom( const CString& rName, const CString& rDesc ); 00033 00034 enum NetSelectModes 00035 { 00036 SelectRooms = 0, 00037 SelectMakeRoom, 00038 SelectModes, 00039 }; 00040 00041 NetSelectModes m_SelectMode; 00042 00043 RageSound m_soundChangeSel; 00044 00045 BitmapText m_textTitle; 00046 Sprite m_sprTitleBG; 00047 00048 Sprite m_sprRoomsBG; 00049 BitmapText m_textRooms; 00050 00051 Sprite m_sprSelection; 00052 00053 Sprite m_sprCreateRoom; 00054 00055 vector < CString > m_Rooms; 00056 int m_iRoomPlace; 00057 00058 CString m_newRoomName, m_newRoomDesc; 00059 }; 00060 00061 #endif 00062 00063 /* 00064 * (c) 2004 Charles Lohr 00065 * All rights reserved. 00066 * 00067 * Permission is hereby granted, free of charge, to any person obtaining a 00068 * copy of this software and associated documentation files (the 00069 * "Software"), to deal in the Software without restriction, including 00070 * without limitation the rights to use, copy, modify, merge, publish, 00071 * distribute, and/or sell copies of the Software, and to permit persons to 00072 * whom the Software is furnished to do so, provided that the above 00073 * copyright notice(s) and this permission notice appear in all copies of 00074 * the Software and that both the above copyright notice(s) and this 00075 * permission notice appear in supporting documentation. 00076 * 00077 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00078 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00079 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00080 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00081 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00082 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00083 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00084 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00085 * PERFORMANCE OF THIS SOFTWARE. 00086 */

Generated on Thu Jan 27 20:57:32 2005 for StepMania by doxygen 1.3.7