Collaboration diagram for 2D Graphical User Inteface:
|
bb5/visu2d directory.
More...Classes | |
| class | sdlvisu::ActionDlg |
| class | sdlvisu::ActionPopup |
| Action Popup, used for both declaration and action. More... | |
| class | ImageButton |
| Image Button Class
This class create a button with an image. More... | |
| class | TextButton |
| Text Button Class
This class create a button with a text. More... | |
| class | BClose |
| Button Close Class
This class create a button with a "Close" image. More... | |
| class | BYes |
| Button Yes Class
This class create a button with a "Yes" image. More... | |
| class | BNo |
| Button No Class
This class create a button with a "No" image. More... | |
| class | DialogBox |
| Master DialogBox Class
This class is a virtual class. You need to use a class which inherit from it to do a dialogbox. More... | |
| class | DInfo |
| Dinfo Class : a simple Info DialogBox This class create a dialogbox with :
| |
| class | sdlvisu::DialogBoxCb |
| Base class for DialogBox button handler. More... | |
| class | sdlvisu::DialogBox |
| Victor reimplementation of dialog box.
Sorry poltuiu I can't reuse your... my system is too different :). More... | |
| class | Entry |
| class | sdlvisu::VisuField |
| Game field (on the left). More... | |
| class | Focus |
| class | sdlvisu::Game |
| Main class to create a new game.
To destroy when a game is finished. Control all the game. More... | |
| class | GUIError |
| Class thrown on error. More... | |
| class | Label |
| class | LabelEntry |
| class | Menu |
| Generic menu
A menu is a collection of Widget with a simple box color in background. More... | |
| class | MenuLight |
| Implementation of a 'very light' menu.
Inherit of 'ClientApp', a crappy class that does all dirty things a stechec client need: handle command line options, configuration file, opens dynamic library, connect to the server, ... More... | |
| class | sdlvisu::Panel |
| Game panel (on the right). More... | |
| class | sdlvisu::VisuPlayer |
| Player class for visu.
Player caracteristics are not stored in this class, they are fetched from Api. More... | |
| class | Widget |
| Master Widget Class
This class is a virtual class. You need to use a class which inherit from it to do a widget. More... | |
| #define | MAX(a, b) (((a) > (b)) ? (a) : (b)) |
| #define | TBTHOME ".." |
| #define | TEAM_PATH TBTHOME "/data/team/" |
| #define | SAVES_PATH TBTHOME "/saves/" |
| #define | VIDEOS_PATH TBTHOME "/data/video/" |
| #define | SOUNDS_PATH TBTHOME "/data/sound/" |
| #define | I18N_PATH TBTHOME "/data/i18n/" |
| #define | FORMATIONS_PATH TBTHOME "/data/formations/" |
| #define | CONFIG_FILE TBTHOME "/config.xml" |
| #define | ADD_IMG_PATH(x) IMG_PATH x |
| #define | ADD_TEAM_PATH(x) TEAM_PATH x |
| #define | ADD_SAVES_PATH(x) SAVES_PATH x |
| #define | ADD_VIDEOS_PATH(x) VIDEOS_PATH x |
| #define | ADD_SOUNDS_PATH(x) SOUNDS_PATH x |
| #define | ADD_I18N_PATH(x) I18N_PATH x |
| #define | ADD_FORMATIONS_PATH(x) FORMATIONS_PATH x |
| #define | ADD_FONTS_PATH(x) FONTS_PATH x |
| #define | DIALOG_ALPHA 234 |
| #define | YES 1 |
| #define | NO 2 |
| #define | CLOSE 3 |
| #define | OK 6 |
| #define | EXIT 8 |
| #define | BACK 10 |
| #define | NETWORK 11 |
| #define | STANDALONE 12 |
| #define | SERVER 13 |
| #define | OPTIONS 14 |
| typedef unsigned | uint |
| typedef unsigned short | ushort |
Enumerations | |
| enum | sdlvisu::eDlgAction { eDlgActInfo, eDlgActReroll, eDlgActFollow, eDlgActTouchback, eDlgActBlockDice, eDlgActKickOrReceive } |
| Dialog box type identifier. | |
| enum | sdlvisu::eDeclarationsImageIndex { DCLII_MOVE = 0, DCLII_BLITZ, DCLII_BLOCK, DCLII_PASS, DCLII_NB } |
| enum | sdlvisu::eActionsImageIndex { ACTII_MOVE = 0, ACTII_GOFORIT, ACTII_BLOCK, ACTII_GATHER, ACTII_THROW, ACTII_AGGRESS, ACTII_BLITZ, ACTII_ROLLOVER, ACTII_STANDUP, ACTII_TRANSMIT, ACTII_THROWTM, ACTII_LEAP, ACTII_NB } |
| enum | eDlgBoxIcon { eDlgError = 2, eDlgWarning = 3, eDlgQuestion = 6, eDlgInfo = 7 } |
| enum | eDlgBoxButton { eDlgBoxYesNo, eDlgBoxOk, eDlgBoxBlock } |
| enum | sdlvisu::eVisuGameState { sdlvisu::VGS_PAUSE = 0, sdlvisu::VGS_SHOWDLGBOX = 10, sdlvisu::VGS_WAITINPUT, sdlvisu::VGS_WAITINIT = 20, sdlvisu::VGS_DOKICKOFF = 30, sdlvisu::VGS_DOTOUCHBACK, sdlvisu::VGS_DOPLACETEAM, sdlvisu::VGS_WAITKICKOFF, sdlvisu::VGS_WAITPLACETEAM, sdlvisu::VGS_DOBLOCKPUSHCHOICE, sdlvisu::VGS_SHOWACTIONPOPUP = 40, sdlvisu::VGS_DOACTION = 50, sdlvisu::VGS_DOPLAY = 60, sdlvisu::VGS_WAITPLAY, sdlvisu::VGS_NOTHING = 70 } |
| Visu global status.
Element with lower value (top of the list) will have higher priority. More... | |
Functions | |
| void | PrintStrings (SDL_Surface *sDest, TTF_Font *fnt, std::string str, SDL_Rect &rc, SDL_Color clrFg) |
| To print text in SDL_Surface
Split string in lines with ' | |
bb5/visu2d directory.
Visu global status.
Element with lower value (top of the list) will have higher priority.
| VGS_PAUSE | Unused for now. |
| VGS_SHOWDLGBOX | A dialog box is displayed. |
| VGS_WAITINPUT | Unused for now. |
| VGS_WAITINIT | Wait for game startup. |
| VGS_DOKICKOFF | Wait for coach to kick-off the ball. |
| VGS_DOTOUCHBACK | Wait for coach to give the ball to one of his players. |
| VGS_DOPLACETEAM | Unused for now. |
| VGS_WAITKICKOFF | Wait for opponent to kick-off the ball. |
| VGS_WAITPLACETEAM | Unused for now. |
| VGS_DOBLOCKPUSHCHOICE | A square must be chosen to push a player in. |
| VGS_SHOWACTIONPOPUP | Actions popup menu is displayed. |
| VGS_DOACTION | A Player will perform a real action, woow... |
| VGS_DOPLAY | It's our turn of game. |
| VGS_WAITPLAY | It's opponent turn of game. |
| VGS_NOTHING | Lowest priority - matched if there is nothing else. |
| void PrintStrings | ( | SDL_Surface * | sDest, | |
| TTF_Font * | fnt, | |||
| std::string | str, | |||
| SDL_Rect & | rc, | |||
| SDL_Color | clrFg | |||
| ) |
To print text in SDL_Surface
Split string in lines with '
' caracter, Create a TTF_RenderText_Solid with the result and Blit it.
1.4.7