Pol  Revision:4b29d2b
Pol::Core::Menu Class Reference

#include <menu.h>

Public Member Functions

 Menu ()
 
 Menu (const Menu &)
 
size_t estimateSize () const
 
weak_ptr< MenugetWeakPtr () const
 
Menuoperator= (const Menu &)
 

Static Public Member Functions

static Menufind_menu (const char *name)
 
static Menufind_menu (unsigned short menu_id)
 
static void read_menus ()
 

Public Attributes

unsigned short menu_id
 
std::vector< MenuItemmenuitems_
 
char name [80]
 
char title [80]
 

Private Attributes

weak_ptr_owner< Menuweakptr
 

Detailed Description

Definition at line 44 of file menu.h.

Constructor & Destructor Documentation

Pol::Core::Menu::Menu ( )

Definition at line 34 of file menu.cpp.

References name, title, and weakptr.

Referenced by estimateSize(), and read_menus().

Pol::Core::Menu::Menu ( const Menu other)

Definition at line 42 of file menu.cpp.

References name, strzcpy, title, and weakptr.

Member Function Documentation

size_t Pol::Core::Menu::estimateSize ( ) const

Definition at line 63 of file menu.cpp.

References Menu(), and menuitems_.

Menu * Pol::Core::Menu::find_menu ( const char *  name)
static
Menu * Pol::Core::Menu::find_menu ( unsigned short  menu_id)
static

Definition at line 94 of file menu.cpp.

References Pol::Core::gamestate, Pol::Core::GameState::menus, and passert.

weak_ptr<Menu> Pol::Core::Menu::getWeakPtr ( ) const
inline
Menu & Pol::Core::Menu::operator= ( const Menu rhs)

Definition at line 49 of file menu.cpp.

References menu_id, menuitems_, name, title, and weakptr.

Member Data Documentation

unsigned short Pol::Core::Menu::menu_id
char Pol::Core::Menu::name[80]

Definition at line 54 of file menu.h.

Referenced by find_menu(), Menu(), operator=(), and read_menus().

char Pol::Core::Menu::title[80]
weak_ptr_owner<Menu> Pol::Core::Menu::weakptr
private

Definition at line 67 of file menu.h.

Referenced by Menu(), and operator=().


The documentation for this class was generated from the following files: