Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
menu Class Reference

#include <command.h>

Public Member Functions

virtual ~menu ()
 
 menu ()
 
 menu (const std::string n_in, char const *d_in, char const *e_in)
 

Public Attributes

std::string Name
 
std::string Display
 
std::vector< mItem * > items
 
bool selected
 
mItemiselected
 
std::string escape
 
bool noescape
 
bool autoselect
 
mItemaselect
 
bool defaultInput
 
mItemidefaultInput
 

Detailed Description

Definition at line 60 of file command.h.

Constructor & Destructor Documentation

menu::~menu ( )
virtual

Definition at line 491 of file command.cpp.

References items.

492 {
493  for (mItem *iter;
494  items.size() > 0;) {
495  iter = items.back();
496  delete iter;
497  items.pop_back();
498  }
499 }
menu::menu ( )
inline

Definition at line 64 of file command.h.

References autoselect, defaultInput, noescape, and selected.

65  {
66  selected = false;
67  noescape = false;
68  autoselect = false;
69  defaultInput = false;
70  }
menu::menu ( const std::string  n_in,
char const *  d_in,
char const *  e_in 
)
inline

Definition at line 71 of file command.h.

References autoselect, defaultInput, Display, escape, Name, noescape, and selected.

72  {
73  selected = false;
74  noescape = false;
75  autoselect = false;
76  defaultInput = false;
77  Name.append( n_in );
78  Display.append( d_in );
79  escape.append( e_in );
80  }

Member Data Documentation

mItem* menu::aselect

Definition at line 89 of file command.h.

Referenced by commandI::setMenu().

bool menu::autoselect

Definition at line 88 of file command.h.

Referenced by commandI::displaymenu(), menu(), and commandI::setMenu().

bool menu::defaultInput

Definition at line 90 of file command.h.

Referenced by commandI::callMenu(), and menu().

std::string menu::Display

Definition at line 82 of file command.h.

Referenced by commandI::displaymenu(), and menu().

std::string menu::escape

Definition at line 86 of file command.h.

Referenced by commandI::callMenu(), commandI::displaymenu(), and menu().

mItem* menu::idefaultInput

Definition at line 91 of file command.h.

Referenced by commandI::callMenu().

mItem* menu::iselected

Definition at line 85 of file command.h.

Referenced by commandI::callMenu(), commandI::displaymenu(), and commandI::setMenu().

std::vector< mItem* > menu::items

Definition at line 83 of file command.h.

Referenced by commandI::addMenuItem(), commandI::callMenu(), commandI::displaymenu(), and ~menu().

std::string menu::Name

Definition at line 81 of file command.h.

Referenced by menu().

bool menu::noescape

Definition at line 87 of file command.h.

Referenced by commandI::callMenu(), commandI::displaymenu(), and menu().

bool menu::selected

Definition at line 84 of file command.h.

Referenced by commandI::callMenu(), commandI::displaymenu(), menu(), and commandI::setMenu().


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