1 /* $Id: View.h,v 1.3 2002/09/07 05:06:29 nan Exp $ */ 2 3 // Copyright (C) 2000, 2002 $B?@Fn(B $B5H9((B(Kanna Yoshihiro) 4 // 5 // This program is free software; you can redistribute it and/or modify 6 // it under the terms of the GNU General Public License as published by 7 // the Free Software Foundation; either version 2 of the License, or 8 // (at your option) any later version. 9 // 10 // This program is distributed in the hope that it will be useful, 11 // but WITHOUT ANY WARRANTY; without even the implied warranty of 12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 // GNU General Public License for more details. 14 // 15 // You should have received a copy of the GNU General Public License 16 // along with this program; if not, write to the Free Software 17 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 19 #ifndef _View_ 20 #define _View_ 21 22 #define VIEW_PLAYER 1 23 #define VIEW_BALL 2 24 #define VIEW_FIELD 3 25 #define VIEW_HOWTO 4 26 #define VIEW_MENUITEM 5 27 #define VIEW_OPENING 6 28 #define VIEW_PLAYGAME 7 29 #define VIEW_PLAYERSELECT 8 30 #define VIEW_PRACTICESELECT 9 31 #define VIEW_TRAININGSELECT 10 32 #define VIEW_TITLE 11 33 #define VIEW_TRAINING 12 34 35 class View { 36 public: 37 View(); 38 virtual ~View(); 39 40 static View* CreateView( int viewType ); 41 42 virtual bool Redraw() = 0; 43 virtual bool RedrawAlpha(); 44 virtual bool GetDamageRect(); 45 46 View *m_next; 47 48 private: 49 static View* CreateView2D( int viewType ); 50 static View* CreateView3D( int viewType ); 51 }; 52 53 #endif // _View_ 54