Action Popup, used for both action an effort. More...
#include <ActionPopup.hh>

Public Member Functions | |
| ActionPopup (Game &g) | |
| void | prepareActionMenu (VisuPlayer *vp) |
| void | prepareEffortMenu (VisuPlayer *vp) |
| void | clear () |
| virtual void | show () |
| Show this surface on the screen. | |
| virtual void | hide () |
| Don't display this surface on the screen. | |
| virtual void | setPos (const Point &to) |
| virtual void | update () |
| Method called each frame, to perfom user custom code. | |
Action Popup, used for both action an effort.
| void sdlvisu::ActionPopup::hide | ( | ) | [virtual] |
Don't display this surface on the screen.
Reimplemented from Surface.
References sdlvisu::Game::unsetState(), and sdlvisu::VGS_SHOWACTIONPOPUP.
Referenced by update().
| void sdlvisu::ActionPopup::show | ( | ) | [virtual] |
Show this surface on the screen.
Reimplemented from VirtualSurface.
References sdlvisu::Game::setState(), and sdlvisu::VGS_SHOWACTIONPOPUP.
Referenced by sdlvisu::VisuPlayer::update(), and update().
| void sdlvisu::ActionPopup::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 sdlvisu::VisuPlayer::beginAction(), Api::canMakeRequest(), Surface::disable(), Surface::enable(), Api::getActiveTeamId(), Surface::getRect(), Surface::getScreenRect(), BaseApi< T >::getState(), GS_TURN, hide(), sdlvisu::Game::isStateSet(), Api::myTeamId(), sdlvisu::VisuPlayer::selectEffort(), show(), sdlvisu::Game::unsetState(), sdlvisu::VisuPlayer::update(), sdlvisu::VGS_MAKEEFFORT, and sdlvisu::VGS_SHOWACTIONPOPUP.
1.6.3