|
Atrinik Server 2.5
|
#include <global.h>Go to the source code of this file.
Data Structures | |
| struct | new_char_struct |
Defines | |
| #define | MAP_POS_X 0 |
| #define | MAP_POS_Y 1 |
| #define | NROF_MAP_NODE (sizeof(map_pos_array) / (sizeof(int) * 2)) |
Typedefs | |
| typedef struct new_char_struct | new_char_struct |
Functions | |
| int | command_run (object *op, char *params) |
| int | command_run_stop (object *op, char *params) |
| void | send_target_command (player *pl) |
| int | command_combat (object *op, char *params) |
| int | command_target (object *op, char *params) |
| static void | set_first_map (object *op) |
| void | new_chars_init () |
| void | command_new_char (char *params, int len, player *pl) |
| void | command_fire_old (char *params, int len, player *pl) |
| static char | spelllist_determine_path (object *op, int spell_number) |
| static void | add_spell_to_spelllist (object *op, int spell_number, StringBuffer *sb) |
| void | send_spelllist_cmd (object *op, const char *spellname, int mode) |
| void | send_skilllist_cmd (object *op, object *skillp, int mode) |
| void | send_ready_skill (object *op, const char *skillname) |
| void | generate_ext_title (player *pl) |
Variables | |
| static int | map_pos_array [][2] |
| new_char_struct * | new_chars = NULL |
| static size_t | num_new_chars = 0 |
This file deals with administrative commands from the client.
Definition in file new.c.
| typedef struct new_char_struct new_char_struct |
Information about a character the player may choose.
| static void add_spell_to_spelllist | ( | object * | op, |
| int | spell_number, | ||
| StringBuffer * | sb | ||
| ) | [static] |
Helper function for send_spelllist_cmd(), adds one spell to buffer which is then sent to the client as the spell list command.
| op | Object. |
| spell_number | ID of the spell to add. |
| sb | StringBuffer instance to add to. |
| int command_combat | ( | object * | op, |
| char * | params | ||
| ) |
| void command_fire_old | ( | char * | params, |
| int | len, | ||
| player * | pl | ||
| ) |
The fire command.
Sent by the client by pressing Ctrl + numpad.
| params | Parameters. |
| len | Length. |
| pl | Player. |
| void command_new_char | ( | char * | params, |
| int | len, | ||
| player * | pl | ||
| ) |
Client sent us a new char creation.
At this point we know the player's name and the password but nothing about his (player char) base arch.
This command tells us which the player has selected and how he has setup the stats.
If anything is not correct here, we kill this socket.
| params | Parameters. |
| len | Length. |
| pl | Player structure. |
| int command_run | ( | object * | op, |
| char * | params | ||
| ) |
| int command_run_stop | ( | object * | op, |
| char * | params | ||
| ) |
| int command_target | ( | object * | op, |
| char * | params | ||
| ) |
| void generate_ext_title | ( | player * | pl | ) |
| void new_chars_init | ( | ) |
| void send_ready_skill | ( | object * | op, |
| const char * | skillname | ||
| ) |
Send skill list to the client.
| op | Object. |
| skillp | Skill object; if not NULL, will only send this skill. |
| mode | One of Spell list modes. |
| void send_spelllist_cmd | ( | object * | op, |
| const char * | spellname, | ||
| int | mode | ||
| ) |
Send spell list command to the client.
| op | Player. |
| spellname | If specified, send only this spell name. Otherwise send all spells the player knows. |
| mode | One of Spell list modes. |
| void send_target_command | ( | player * | pl | ) |
| static void set_first_map | ( | object * | op | ) | [static] |
| static char spelllist_determine_path | ( | object * | op, |
| int | spell_number | ||
| ) | [static] |
Determine spell's path for spell list sending.
| op | Object. |
| spell_number | Spell ID. |
| d | Player is denied from casting the spell. |
| a | Player is attuned to the spell. |
| r | Player is repelled from the spell. |
| new_char_struct* new_chars = NULL |
size_t num_new_chars = 0 [static] |
1.7.4