ScreenSound.h

Go to the documentation of this file.
00001 #ifndef _SCREENSOUND_H
00002 #define _SCREENSOUND_H
00003 
00004 #include "MercuryScreen.h"
00005 #include "MercuryText.h"
00006 #include "MercurySoundObject.h"
00007 #include "MercuryShapes.h"
00008 #include "MercuryCamera.h"
00009 #include "MercuryLoadableModel.h"
00010 #include "MercuryLight.h"
00011 
00012 class ScreenSound : public MercuryScreen
00013 {
00014 public:
00015     ScreenSound( ):MercuryScreen( ) { m_sound = NULL; }
00016     ScreenSound( const MString & name ):MercuryScreen( name ) { m_sound = NULL; m_name = name; }
00017     virtual ~ScreenSound();
00018 
00019     virtual void Update( const float dTime );
00020     virtual void Init();
00021     virtual void Message( int Message, PStack & data, const MString & name );
00022     virtual void Draw();
00023     CLASS_RTTI( ScreenSound, MercuryScreen );
00024 private:
00025     MercuryLight m_light;
00026     MercurySoundObject* m_sound;    
00027     MercuryLoadableModel* m_ball;
00028     MercurySprite m_bar1;
00029     MercurySprite m_bar2;
00030     MercurySprite m_bar3;
00031     MercurySprite m_paddle;
00032     MercuryCamera m_camera;
00033     float x;
00034     float y;
00035     bool m_left;
00036     bool m_right;
00037     bool m_up;
00038     bool m_down;
00039     float totalTime;
00040 };
00041 
00042 #endif
00043 
00044 /*
00045  * (c) 2005 Anthony Varner
00046  * All rights reserved.
00047  * 
00048  * Permission is hereby granted, free of charge, to any person obtaining a
00049  * copy of this software and associated documentation files (the
00050  * "Software"), to deal in the Software without restriction, including
00051  * without limitation the rights to use, copy, modify, merge, publish,
00052  * distribute, and/or sell copies of the Software, and to permit persons to
00053  * whom the Software is furnished to do so, provided that the above
00054  * copyright notice(s) and this permission notice appear in all copies of
00055  * the Software and that both the above copyright notice(s) and this
00056  * permission notice appear in supporting documentation.
00057  * 
00058  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
00059  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
00060  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
00061  * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS
00062  * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT
00063  * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
00064  * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
00065  * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
00066  * PERFORMANCE OF THIS SOFTWARE.
00067  */
00068  

Hosted by SourceForge.net Logo