ScreenHelloWorld.h

Go to the documentation of this file.
00001 #ifndef _SCREEN_TITLE_H
00002 #define _SCREEN_TITLE_H
00003 
00004 #include "MercuryScreen.h"
00005 #include "MercuryCamera.h"
00006 #include "MercuryLight.h"
00007 #include "MercuryDisplay.h"
00008 
00010 class ScreenHelloWorld : public MercuryScreen
00011 {
00012 public:
00013     ScreenHelloWorld( ) { }
00014     ScreenHelloWorld( const MString & name ):MercuryScreen( name ) { m_name = name; }
00015     ~ScreenHelloWorld() { DISPLAY->RemoveLight(&m_light); }
00016     virtual void Init();
00017     virtual void Update( const float dTime );
00018     virtual void Message( int Message, PStack & data, const MString & name );
00019     CLASS_RTTI( ScreenHelloWorld, MercuryScreen );
00020 private:
00021     MercuryLight m_light;
00022     vector< MString > m_imagePaths;
00023 
00024     double m_timeElasped;
00025     MercurySprite m_sprHello;
00026     MercuryCamera m_camera;
00027 
00028     float m_delay;
00029     int m_maxPoints;
00030     int m_minPoints;
00031 
00032 
00033     bool m_held;
00034     int m_x,m_y;
00035 };
00036 
00037 #endif
00038 
00039 /* 
00040  * Copyright (c) 2005-2006, Charles Lohr
00041  * All rights reserved.
00042  *
00043  * Redistribution and use in source and binary forms, with or
00044  * without modification, are permitted provided that the following
00045  * conditions are met:
00046  *  -   Redistributions of source code must retain the above
00047  *      copyright notice, this list of conditions and the following disclaimer.
00048  *  -   Redistributions in binary form must reproduce the above copyright
00049  *      notice, this list of conditions and the following disclaimer in
00050  *      the documentation and/or other materials provided with the distribution.
00051  *  -   Neither the name of the Mercury Engine nor the names of its
00052  *      contributors may be used to endorse or promote products derived from
00053  *      this software without specific prior written permission.
00054  *
00055  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
00056  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00057  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00058  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
00059  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00060  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
00061  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
00062  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00063  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
00064  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00065  */

Hosted by SourceForge.net Logo