forked from Wirlaburla/P3NG0
made static and fixed missing function issues
This commit is contained in:
parent
c7faeb0441
commit
98c6f995c9
|
@ -1,4 +1,4 @@
|
||||||
add_executable(pengobot
|
add_executable(pengobot
|
||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
target_link_libraries(pengobot)
|
target_link_libraries(pengobot -static)
|
||||||
|
|
14
src/client.h
14
src/client.h
|
@ -50,10 +50,10 @@ uint16_t spin = 0;
|
||||||
std::map<char, char*> properties;
|
std::map<char, char*> properties;
|
||||||
std::map<char, Drone> objects;
|
std::map<char, Drone> objects;
|
||||||
|
|
||||||
int deinit(int response);
|
static char* toLower(char* str);
|
||||||
|
static std::string toLower(std::string str);
|
||||||
static char* trim(char *str);
|
static char* trim(char *str);
|
||||||
char* zero(int size);
|
int deinit(int response);
|
||||||
unsigned char* uzero(int size);
|
|
||||||
void autoInit();
|
void autoInit();
|
||||||
void roomInit();
|
void roomInit();
|
||||||
void roomKeepAlive();
|
void roomKeepAlive();
|
||||||
|
@ -61,14 +61,18 @@ void autoRandMessage();
|
||||||
void reciever(int *sock, uint16_t port);
|
void reciever(int *sock, uint16_t port);
|
||||||
void sessInit(int *sock, std::string username, std::string password);
|
void sessInit(int *sock, std::string username, std::string password);
|
||||||
void sessExit(int *sock);
|
void sessExit(int *sock);
|
||||||
|
void constructPropertyList(int type, std::map<int, char*> props, unsigned char* snd);
|
||||||
void readPropertyList(unsigned char* in);
|
void readPropertyList(unsigned char* in);
|
||||||
std::map<char, char*> readOldPropertyList(unsigned char* in);
|
std::map<char, char*> readOldPropertyList(unsigned char* in);
|
||||||
void setAvatar(int *sock, std::string avatar);
|
void setAvatar(int *sock, std::string avstr);
|
||||||
void roomIDReq(int *sock, std::string room);
|
void roomIDReq(int *sock, std::string room);
|
||||||
void teleport(int *sock, int x, int y, int z, int rot);
|
void teleport(int *sock, int x, int y, int z, int rot);
|
||||||
char* dimAdd(std::string room);
|
void userEnter(char id);
|
||||||
|
void userExit(char id);
|
||||||
bool strcontains(std::string needle, std::string haystack);
|
bool strcontains(std::string needle, std::string haystack);
|
||||||
bool vstrcontains(std::string needle, std::vector<std::string> haystack);
|
bool vstrcontains(std::string needle, std::vector<std::string> haystack);
|
||||||
|
std::string getContainedWorld(std::map<std::string, std::string> worldlist, std::string input);
|
||||||
|
char* handleCommand(std::string from, std::string message);
|
||||||
void processText(int *sock, std::string username, std::string message);
|
void processText(int *sock, std::string username, std::string message);
|
||||||
void processWhisper(int *sock, std::string username, std::string message);
|
void processWhisper(int *sock, std::string username, std::string message);
|
||||||
void sendChatMessage(int *sock, std::string msg);
|
void sendChatMessage(int *sock, std::string msg);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user