|
Public Member Functions |
| CChooser () |
| ~CChooser () |
void | Start (SDL_Surface *m_poScreen) |
void | Stop () |
void | Resize (int x1, int y1, int x2, int y2) |
void | Draw () |
void | MarkFighter (FighterEnum a_enFighter, Uint32 a_iColor) |
SDL_Surface * | GetPortrait (FighterEnum a_enFighter) |
void | DrawPortrait (FighterEnum a_enFighter, SDL_Surface *a_poScreen, const SDL_Rect &a_roRect) |
FighterEnum | GetCurrentFighter (int a_iPlayer) |
void | MoveRectangle (int a_iPlayer, int a_iDirection) |
void | SetRectangle (int a_iPlayer, FighterEnum a_enFighter) |
void | SetRectangleVisible (int a_iPlayer, bool a_bVisible) |
bool | IsRectangleVisible (int a_iPlayer) |
void | DrawRectangles (int a_iStartingWith) |
SDL_Rect | GetFighterRect (FighterEnum a_enFighter) |
Protected Member Functions |
void | Init () |
int | FighterToPosition (FighterEnum a_enFighter) |
FighterEnum | PositionToFighter (int a_iPosition) |
SDL_Rect | GetRect (int a_iPosition) |
void | ClearRectangle (int a_iPlayer) |
void | DrawRectangle (int a_iPlayer) |
void | DrawRectangle (int a_iPosition, Uint32 a_iColor) |
Protected Attributes |
SDL_Surface * | m_poScreen |
FighterEnum | m_aenFighters [100] |
SDL_Surface * | m_apoPortraits [100] |
bool | m_abRectangleVisible [MAXPLAYERS] |
int | m_aiPlayerPosition [MAXPLAYERS] |
Uint32 | m_aiColors [MAXPLAYERS] |
int | x1 |
int | y1 |
int | x2 |
int | y2 |
int | m_iNumberOfFighters |
int | m_iRows |
int | m_iCols |
It is used on the fighter selection screens.