sdlvisu::ActionPopup Class Reference
[2D Graphical User Inteface]

Action Popup, used for both declaration and action. More...

#include <ActionPopup.hh>

Inheritance diagram for sdlvisu::ActionPopup:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 ActionPopup (Game &g)
void prepareDeclareMenu (VisuPlayer *vp)
void prepareActionMenu (enum eDeclaredAction dcl)
void dissociateFromPlayer ()
virtual void show ()
 Show this surface on the screen.
virtual void hide ()
 Don't display this surface on the screen.
virtual void update ()
 Method called each frame, to perfom user custom code.

Detailed Description

Action Popup, used for both declaration and action.


Member Function Documentation

void sdlvisu::ActionPopup::hide (  )  [virtual]

Don't display this surface on the screen.

Note:
Function update() is still called, but not render().

Reimplemented from Surface.

void sdlvisu::ActionPopup::show (  )  [virtual]

Show this surface on the screen.

Note:
This is the default.

Reimplemented from VirtualSurface.

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, ...

Note:
Don't forget to call update for the base class at the end of your function , otherwise strange things will happen.

Reimplemented from VirtualSurface.


The documentation for this class was generated from the following files:
Generated on Sat Jun 23 16:15:35 2007 for Stechec/TBT by  doxygen 1.4.7