Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <mmorpgclient.h>
Public Member Functions | |
bool | getStatus (int) |
mmoc () | |
int | getSocket () |
void | connectTo (const char *host, const char *port) |
void | negotiate (std::vector< std::string * > *d) |
bool | listenThread () |
void | createThread () |
void | send (char *buffer, int size) |
void | send (std::string &string) |
void | ParseBinaryData (std::vector< char * > &in) |
void | ParseMovement (POSpack &in) |
void | ParseRemoteInput (char *buf) |
virtual void | conoutf (std::string &, int x=0, int y=0, int z=0) |
void | close () |
![]() | |
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 *) |
void | saycommand (const char *init) |
void | ConsoleKeyboardI (int code, bool isdown) |
void | conoutn (std::string &in, int a, int b, int c) |
Public Attributes | |
Functor< mmoc > * | cmd |
Functor< mmoc > * | cl |
Functor< mmoc > * | csay |
![]() | |
bool | console |
bool | immortal |
Additional Inherited Members | |
![]() | |
static void | keypress (int code, int modifiers, bool isDown, int x, int y) |
Definition at line 7 of file mmorpgclient.h.
mmoc::mmoc | ( | ) |
Definition at line 25 of file mmorpgclient.cpp.
References commandI::addCommand(), cmd, CommandInterpretor, connectTo(), and INET_startup().
void mmoc::close | ( | void | ) |
void mmoc::connectTo | ( | const char * | host, |
const char * | port | ||
) |
Definition at line 47 of file mmorpgclient.cpp.
References commandI::addCommand(), cl, close(), CommandInterpretor, RText::conoutf(), createThread(), csay, INET_ConnectTo(), send(), VsnetOSS::socket(), and test.
Referenced by mmoc().
Reimplemented from RText.
Definition at line 283 of file mmorpgclient.cpp.
References CommandInterpretor, and RText::conoutf().
void mmoc::createThread | ( | ) |
Definition at line 225 of file mmorpgclient.cpp.
References startThread().
Referenced by connectTo().
|
inline |
Definition at line 20 of file mmorpgclient.h.
Referenced by startThread().
Definition at line 100 of file mmorpgclient.cpp.
Referenced by close(), listenThread(), and startThread().
bool mmoc::listenThread | ( | ) |
Definition at line 190 of file mmorpgclient.cpp.
References buffer, getStatus(), INET_Read(), INET_Recv(), ParseMovement(), and ParseRemoteInput().
Referenced by startThread().
void mmoc::negotiate | ( | std::vector< std::string * > * | d) |
void mmoc::ParseBinaryData | ( | std::vector< char * > & | in) |
void mmoc::ParseMovement | ( | POSpack & | in) |
Definition at line 259 of file mmorpgclient.cpp.
Referenced by listenThread().
void mmoc::ParseRemoteInput | ( | char * | buf) |
Definition at line 113 of file mmorpgclient.cpp.
References CommandInterpretor, RText::conoutf(), commandI::execute(), VsnetOSS::socket(), and start.
Referenced by listenThread().
void mmoc::send | ( | char * | buffer, |
int | size | ||
) |
Definition at line 230 of file mmorpgclient.cpp.
References INET_Write().
Referenced by connectTo(), negotiate(), and send().
void mmoc::send | ( | std::string & | string) |
Definition at line 36 of file mmorpgclient.h.
Referenced by connectTo(), and startThread().
Definition at line 35 of file mmorpgclient.h.
Referenced by mmoc().
Definition at line 37 of file mmorpgclient.h.
Referenced by connectTo(), and startThread().