vegastrike
0.5.1.r1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
mmorpgclient.h
Go to the documentation of this file.
1
#ifdef MMORPGC_INC
2
#else
3
#define MMORPGC_INC 1
4
//linux version is int
5
//extern commandI CommandInterpretor;
6
class
POSpack
;
7
class
mmoc
:
public
commandI
8
{
9
//sockaddr_in m_addr;
10
int
socket;
11
std::string start;
//holds strings waiting to be processed
12
std::string tempstr;
//holds temporary strings
13
bool
status;
14
int
binarysize;
15
bool
binmode;
//bypass string processing
16
bool
POSmode;
//expect position packet
17
public
:
18
bool
getStatus
(
int
);
//also sets it, mutex'd
19
mmoc
();
20
int
getSocket
()
21
{
22
return
socket;
23
}
24
void
connectTo
(
const
char
*host,
const
char
*port );
25
void
negotiate
( std::vector< std::string* > *d );
26
bool
listenThread
();
27
void
createThread
();
28
void
send
(
char
*buffer,
int
size );
29
void
send
( std::string &
string
);
30
void
ParseBinaryData
( std::vector< char* > &in );
31
void
ParseMovement
(
POSpack
&in );
32
void
mmoc::ParseRemoteInput
(
char
*buf );
33
virtual
void
conoutf
( std::string&,
int
x = 0,
int
y = 0,
int
z = 0 );
34
void
close
();
35
Functor< mmoc >
*
cmd
;
36
Functor< mmoc >
*
cl
;
//disconnect/close
37
Functor< mmoc >
*
csay
;
38
};
39
40
int
startThread
(
void
*mmoc2use );
41
#endif
42
src
mmorpgclient.h
Generated on Fri Feb 14 2014 09:03:10 for vegastrike by
1.8.4