1 #ifndef PLAYERSELECTCONTROLLER_H
2 #define PLAYERSELECTCONTROLLER_H
3 
4 #include "SDL.h"
5 #include "FighterEnum.h"
6 #include "common.h"
7 
8 class CPlayerSelectView;
9 
10 class CPlayerSelectController
11 {
12 public:
13 	CPlayerSelectController( bool a_bNetworkGame );
14 	~CPlayerSelectController();
15 
16 	void				DoPlayerSelect();
17 
18 protected:
19 	void				HandleEvents();
20 	void				HandleKey( int a_iPlayer, int a_iKey );
21 	bool				HandleChatKey( SDL_Event& a_roEvent );
22 	void				HandleNetwork();
23 	void				GetThisTick();
24 	void				MarkFighters();
25 
26 	void				SetPlayerActive( int a_iPlayer, bool a_bActive );
27 	void				ActivateNextPlayer( int a_iCurrentPlayer );
28 	int					GetTeamSize( int a_iPlayer );
29 
30 	bool				IsFighterSelectable( FighterEnum a_enFighter );
31 
32 
33 protected:
34 	CPlayerSelectView*	m_poView;
35 	bool				m_bNetworkGame;
36 	bool				m_bTeamMode;
37 	bool				m_bChatActive;
38 	char				m_acChatMsg[256];
39 	int					m_iNumberOfSelectableFighters;
40 
41 	bool				m_abPlayerActive[MAXPLAYERS];
42 
43 	int					m_iGameSpeed;
44 	int					m_iThisTick;
45 	int					m_iLastTick;
46 };
47 
48 
49 #endif // PLAYERSELECTCONTROLLER_H
50