Game panel (on the right). More...
#include <Panel.hh>

Public Member Functions | |
| Panel (Game &g) | |
| void | setDefaultPlayerInfo (int team_id, int player_id) |
| Set default player info to display. | |
| void | unsetDefaultPlayerInfo () |
| Unset default player info to display, if it is the currently default player info. | |
| void | setPlayerInfo (int team_id, int player_id) |
| Set player info to display. | |
| void | unsetPlayerInfo (int team_id, int player_id) |
| Unset player info to display, if it is the currently displayed player info. | |
| void | setHalf (int cur_half) |
| Set half-time information. | |
| void | setTurn (int team_id, int cur_turn) |
| Set turn information. | |
| void | unsetTurnCursor () |
| Unset turn cursor. | |
| virtual void | update () |
| Method called each frame, to perfom user custom code. | |
Game panel (on the right).
| void sdlvisu::Panel::setDefaultPlayerInfo | ( | int | team_id, | |
| int | player_id | |||
| ) |
Set default player info to display.
Referenced by sdlvisu::VisuPlayer::onEventAction().
| void sdlvisu::Panel::setPlayerInfo | ( | int | team_id, | |
| int | player_id | |||
| ) |
Set player info to display.
Referenced by sdlvisu::VisuPlayer::update().
| void sdlvisu::Panel::unsetDefaultPlayerInfo | ( | ) |
Unset default player info to display, if it is the currently default player info.
Referenced by sdlvisu::VisuPlayer::update().
| void sdlvisu::Panel::unsetPlayerInfo | ( | int | team_id, | |
| int | player_id | |||
| ) |
Unset player info to display, if it is the currently displayed player info.
Referenced by sdlvisu::VisuPlayer::update().
| void sdlvisu::Panel::update | ( | ) | [virtual] |
Method called each frame, to perfom user custom code.
You should override it.
Since a parent is assigned to the surface (and this parent is itself attached by other means to the root screen), this method is called at each frame. It is not called if this surface or one of its parent is disabled. In this method you can do what you want with your object, like processing input, updating other programs attributes, changing surface property, ...
Reimplemented from VirtualSurface.
References Sprite::anim(), BaseApi< T >::getState(), Api::getTeam(), GS_WAIT, Api::isTimerPaused(), Api::remainingTime(), Api::selectTeam(), Sprite::setFrame(), and Sprite::stopAnim().
1.6.3