ScreenCopper.h

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

Hosted by SourceForge.net Logo