Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <command.h>
Public Member Functions | |
virtual | ~commandI () |
commandI () | |
bool | getmenumode () const |
void | help (std::string &d) |
void | addCommand (TFunctor *com, const char *name) |
void | remCommand (char *name) |
void | remCommand (TFunctor *com) |
void | dummy (std::vector< std::string * > *d) |
void | prompt () |
void | pcommands () |
bool | execute (std::string *incommand, bool isDown, int sock_in=0) |
}}} More... | |
bool | fexecute (std::string *incommand, bool isDown, int sock_in=0) |
bool | execCommand (std::string *string, bool isDown) |
bool | addMenu (menu *menu2add) |
bool | addMenuItem (mItem *mitem2add, menu *=NULL) |
bool | callMenu (char *name, char *args, std::string &s2manip) |
std::string | setMenu (std::string name) |
std::string | displaymenu () |
void | breakmenu () |
virtual std::string | display (std::string &s) |
![]() | |
RText () | |
virtual | ~RText () |
std::string | getcurcommand () |
int | text_width (char *str) |
void | draw_text (std::string &str, float left, float top, int gl_num) |
void | renderconsole () |
void | conline (std::string &sf, bool highlight) |
void | conoutf (char *) |
virtual void | conoutf (std::string &s, int a=0, int b=0, int c=0) |
void | saycommand (const char *init) |
void | ConsoleKeyboardI (int code, bool isdown) |
void | conoutn (std::string &in, int a, int b, int c) |
Static Public Member Functions | |
static void | keypress (int code, int modifiers, bool isDown, int x, int y) |
Public Attributes | |
bool | console |
bool | immortal |
|
virtual |
commandI::commandI | ( | ) |
Definition at line 427 of file command.cpp.
References addCommand(), TFunctor::attribs, console, dummy(), help(), Attributes::hidden, immortal, pcommands(), and prompt().
void commandI::addCommand | ( | TFunctor * | com, |
const char * | name | ||
) |
Definition at line 578 of file command.cpp.
References coms::Name, and rcCMDEXISTS.
Referenced by commandI(), mmoc::connectTo(), mmoc::mmoc(), RegisterPythonWithCommandInterpreter::RegisterPythonWithCommandInterpreter(), and ShipCommands::ShipCommands().
Definition at line 1043 of file command.cpp.
Referenced by ShipCommands::ShipCommands().
Definition at line 1092 of file command.cpp.
References menu::items.
Referenced by ShipCommands::ShipCommands().
void commandI::breakmenu | ( | ) |
Definition at line 1385 of file command.cpp.
bool commandI::callMenu | ( | char * | name, |
char * | args, | ||
std::string & | s2manip | ||
) |
Definition at line 1109 of file command.cpp.
References mItem::action, mItem::autoreprint, RText::conoutf(), menu::defaultInput, displaymenu(), menu::escape, execute(), fexecute(), mItem::func2call, menu::idefaultInput, mItem::inputbit, mItem::inputbit2, menu::iselected, menu::items, mItem::menubuf, menu::noescape, menu::selected, mItem::selectstring, setMenu(), x, and y.
Referenced by execute().
|
virtual |
string commandI::displaymenu | ( | ) |
Definition at line 1051 of file command.cpp.
References menu::autoselect, menu::Display, display(), menu::escape, menu::iselected, menu::items, menu::noescape, menu::selected, and mItem::selectstring.
Referenced by callMenu(), and setMenu().
void commandI::dummy | ( | std::vector< std::string * > * | d) |
Definition at line 527 of file command.cpp.
References RText::conoutf(), VSRandom::genrand_int32(), and vsrandom.
Referenced by commandI().
}}}
Definition at line 764 of file command.cpp.
References callMenu(), fexecute(), VsnetOSS::socket(), and y.
Referenced by callMenu(), keypress(), and mmoc::ParseRemoteInput().
Definition at line 823 of file command.cpp.
References TFunctor::Call(), RText::conoutf(), console, e, coms::functor, coms::Name, next, and y.
Referenced by callMenu(), and execute().
|
inline |
void commandI::help | ( | std::string & | d) |
Definition at line 505 of file command.cpp.
Referenced by commandI().
New input wrapper for new Command Processor SDL version
Definition at line 1441 of file command.cpp.
References console, RText::ConsoleKeyboardI(), execute(), RText::getcurcommand(), restore_main_loop(), WSK_ESCAPE, and WSK_RETURN.
Referenced by ConsoleKeys::BringConsole().
void commandI::pcommands | ( | ) |
Definition at line 543 of file command.cpp.
References RText::conoutf(), immortal, and x.
Referenced by commandI().
void commandI::prompt | ( | ) |
void commandI::remCommand | ( | char * | name) |
Definition at line 598 of file command.cpp.
Referenced by startThread(), and ShipCommands::~ShipCommands().
void commandI::remCommand | ( | TFunctor * | com) |
Definition at line 613 of file command.cpp.
string commandI::setMenu | ( | std::string | name) |
Definition at line 1360 of file command.cpp.
References menu::aselect, menu::autoselect, displaymenu(), menu::iselected, and menu::selected.
Referenced by callMenu(), and ShipCommands::pymenu().
bool commandI::console |
Definition at line 117 of file command.h.
Referenced by ConsoleKeys::BringConsole(), commandI(), fexecute(), and keypress().
bool commandI::immortal |
Definition at line 118 of file command.h.
Referenced by commandI(), and pcommands().