Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | Related Pages

Menu Class Reference

abstract menu base class More...

#include <menu.h>

Inheritance diagram for Menu:

Inheritance graph
[legend]
Collaboration diagram for Menu:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual void act ()=0
 Main menu function, depends on currententry (changed by input), overload this.
void setLast (Menu *lastmenu)
MenugetLast ()
Uint8 getSize ()
void increaseEntry (bool forward=true)

Public Attributes

string title
 Name of the menu.

Protected Attributes

Menulast
 Pointer to the last used menu. NULL if there is no last menu.
Uint8 currententry
 Currently selected menu entry.
std::vector< string > entries
 List of all Menu entry names.
Fontfont
 Font for non highlighted menu entries.
Fontfont_title
 Font for the menu title.
Fontfont_high
 Font for the selected menu entry.

Detailed Description

abstract menu base class

Abstract base class for menus. The main part is in the constructor and in the virtual function act(), overload it in the child classes. Only the base class is needed to draw the menu in gfxeng. The background depends from where the menu is called.


The documentation for this class was generated from the following file:
Generated on Sun Feb 5 13:02:37 2006 for Lost Penguins by doxygen 1.3.8