1 /* $Id: PlayerSelect.h,v 1.13 2003/07/16 16:12:47 nan Exp $ */
2 
3 // Copyright (C) 2000, 2001  $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 _PlayerSelect_
20 #define _PlayerSelect_
21 
22 #include "Control.h"
23 #include "PlayerSelectView.h"
24 
25 class PlayerSelect : public Control {
26 public:
27   PlayerSelect();
28   virtual ~PlayerSelect();
29 
30   virtual bool Init();
31 
32   static void Create();
33 
34   virtual bool Move( SDL_keysym *KeyHistory, long *MouseXHistory,
35 		     long *MouseYHistory, unsigned long *MouseBHistory,
36 		     int Histptr );
37 
GetRotate()38   virtual long GetRotate() { return m_rotate; };
39   virtual long GetPlayerNum();
40   virtual long GetOpponentNum();
GetSelected()41   virtual long GetSelected() { return m_selected; };
42 
43   virtual bool LookAt( double &srcX, double &srcY, double &srcZ,
44 		       double &destX, double &destY, double &destZ );
45 
IsPlaying()46   virtual bool IsPlaying() { return false; };
47 
GetView()48   virtual View *GetView() { return m_View; };
49 protected:
50   PlayerSelectView *m_View;
51   long m_rotate;	// Rotation of players
52   long m_selected;	// Selected : m_selected > 0
53 };
54 
55 #endif	// _PlayerSelect_
56