Fimbulwinter Project  Pre-Alpha
An Ragnarok Online Emulator
Classes | Public Types | Static Public Member Functions | Static Public Attributes
CharServer Class Reference

List of all members.

Classes

struct  login_config

Public Types

typedef std::map< int, struct
AuthNode
auth_node_db
typedef std::map< int, struct
OnlineChar
online_char_db
typedef std::map< int, struct
ZoneServerConnection
zone_server_db

Static Public Member Functions

static void run ()
 Start Char Server.
static int parse_from_client (tcp_connection::pointer cl)
 Parse from Client.
static int parse_from_zone (tcp_connection::pointer cl)
 Parse from Zone.
static int parse_from_login (tcp_connection::pointer cl)
 Parse from Login.
static void connect_to_auth ()
 Connect to Auth Server.
static void auth_ok (tcp_connection::pointer cl, CharSessionData *csd)
 Connection success into char server.
static void set_charsel (int account_id, tcp_connection::pointer cl)
 Character Selection.
static void set_char_offline (int account_id, char char_id)
 Set a character to offline mode.
static void set_char_online (int server, int char_id, int account_id)
 Set a Character to online mode.
static void disconnect_timeout (int timer, int accid)
static void send_chars (tcp_connection::pointer cl, CharSessionData *csd)
 Send Characters.
static void char_to_buf (struct CHARACTER_INFO *charinfo, CharData *p)
 Char to Buffer.
static int create_char (CharSessionData *csd, char *name_, int str, int agi, int vit, int int_, int dex, int luk, int slot, int hair_color, int hair_style)
 Create Character.
static int check_char_name (char *name)
 Check Character Name.
static bool check_email (char *email)
 Check Email.
static void delete2_req (tcp_connection::pointer cl, CharSessionData *csd)
 Delete Character Requisition.
static void delete2_accept (tcp_connection::pointer cl, CharSessionData *csd)
 Delete character OK.
static void delete2_cancel (tcp_connection::pointer cl, CharSessionData *csd)
 Cancel Character Delection.
static void delete2_ack (tcp_connection::pointer cl, int char_id, int result, time_t deltime)
static void delete2_accept_ack (tcp_connection::pointer cl, int char_id, int param3)
static void delete2_cancel_ack (tcp_connection::pointer cl, int char_id, int result)
static void inter_reply_regs (tcp_connection::pointer cl, int account_id, int char_id, int type)
static void request_accreg2 (int account_id, int char_id)
 !

Static Public Attributes

static bool auth_conn_ok
static tcp_connection::pointer auth_conn
static config_filechar_config
static struct login_config config
static boost::asio::io_service * io_service
static tcp_serverserver
static soci::session * database
static CharDBchars
static auth_node_db auth_nodes
static online_char_db online_chars
static map_index maps
static map< int, int > map_to_zone
static zone_server_db servers

Member Function Documentation

void CharServer::auth_ok ( tcp_connection::pointer  cl,
CharSessionData csd 
) [static]

Connection success into char server.

Author:
Fimbulwinter Development Team
GreenBox
Date:
08/12/11
void CharServer::char_to_buf ( struct CHARACTER_INFO charinfo,
CharData p 
) [static]

Char to Buffer.

Makes the character cache

Author:
Fimbulwinter Development Team
GreenBox
Date:
08/12/11
int CharServer::check_char_name ( char *  name) [static]

Check Character Name.

Author:
Fimbulwinter Development Team
GreenBox
Date:
08/12/11
bool CharServer::check_email ( char *  email) [static]

Check Email.

Author:
Fimbulwinter Development Team
GreenBox
Date:
08/12/11
void CharServer::connect_to_auth ( ) [static]

Connect to Auth Server.

Do the connection between char and auth server

Author:
Fimbulwinter Development Team
GreenBox
Date:
08/12/11
int CharServer::create_char ( CharSessionData csd,
char *  name,
int  str,
int  agi,
int  vit,
int  int_,
int  dex,
int  luk,
int  slot,
int  hair_color,
int  hair_style 
) [static]

Create Character.

Author:
Fimbulwinter Development Team
GreenBox
Date:
08/12/11
void CharServer::delete2_accept ( tcp_connection::pointer  cl,
CharSessionData csd 
) [static]

Delete character OK.

Author:
Fimbulwinter Development Team
GreenBox
Date:
10/12/11
void CharServer::delete2_cancel ( tcp_connection::pointer  cl,
CharSessionData csd 
) [static]

Cancel Character Delection.

Author:
Fimbulwinter Development Team
GreenBox
Date:
10/12/11
void CharServer::delete2_req ( tcp_connection::pointer  cl,
CharSessionData csd 
) [static]

Delete Character Requisition.

Author:
Fimbulwinter Development Team
GreenBox
Date:
10/12/11
int CharServer::parse_from_client ( tcp_connection::pointer  cl) [static]

Parse from Client.

Author:
Fimbulwinter Development Team
GreenBox
Date:
08/12/11
int CharServer::parse_from_login ( tcp_connection::pointer  cl) [static]

Parse from Login.

Parse informations from auth server

Author:
Fimbulwinter Development Team
GreenBox
Date:
08/12/11
int CharServer::parse_from_zone ( tcp_connection::pointer  cl) [static]

Parse from Zone.

Author:
Fimbulwinter Development Team
GreenBox
Date:
??/12/11
void CharServer::request_accreg2 ( int  account_id,
int  char_id 
) [static]

!

Request Acc Register

void CharServer::run ( ) [static]

Start Char Server.

Start the char-server and load the confs

Author:
Fimbulwinter Development Team
GreenBox
Date:
08/12/11
void CharServer::send_chars ( tcp_connection::pointer  cl,
CharSessionData csd 
) [static]

Send Characters.

Send character informations to the client

Author:
Fimbulwinter Development Team
GreenBox
Date:
08/12/11
void CharServer::set_char_offline ( int  account_id,
char  char_id 
) [static]

Set a character to offline mode.

Author:
Fimbulwinter Development Team
GreenBox
Date:
08/12/11
void CharServer::set_char_online ( int  server,
int  char_id,
int  account_id 
) [static]

Set a Character to online mode.

Author:
Fimbulwinter Development Team
GreenBox
Date:
08/12/11
void CharServer::set_charsel ( int  account_id,
tcp_connection::pointer  cl 
) [static]

Character Selection.

Author:
Fimbulwinter Development Team
GreenBox
Date:
08/12/11

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