|
Atrinik Client 2.5
|
#include <global.h>Go to the source code of this file.
Functions | |
| void | clear_player () |
| void | new_player (long tag, long weight, short face) |
| void | client_send_apply (int tag) |
| void | client_send_examine (int tag) |
| void | client_send_move (int loc, int tag, int nrof) |
| void | send_command (const char *command) |
| void | CompleteCmd (unsigned char *data, int len) |
| void | set_weight_limit (uint32 wlim) |
| void | init_player_data () |
| void | widget_player_data_event (widgetdata *widget, int x, int y) |
| void | widget_show_player_data (widgetdata *widget) |
| void | widget_player_stats (widgetdata *widget) |
| void | widget_skillgroups (widgetdata *widget) |
| void | widget_show_player_doll_event () |
| void | widget_show_player_doll (widgetdata *widget) |
| void | widget_show_main_lvl (widgetdata *widget) |
| void | widget_show_skill_exp (widgetdata *widget) |
| void | widget_show_regeneration (widgetdata *widget) |
| void | widget_show_container (widgetdata *widget) |
| void | widget_highlight_menu (widgetdata *widget) |
| void | widget_menu_event (widgetdata *widget, int x, int y) |
| void | widget_menuitem_event (widgetdata *widget, int x, int y, void(*menu_func_ptr)(widgetdata *, int, int)) |
| void | widget_show_label (widgetdata *widget) |
| void | widget_show_bitmap (widgetdata *widget) |
| int | gender_to_id (const char *gender) |
Variables | |
| static _player_doll_pos | player_doll [PDOLL_INIT] |
| static float | weapon_speed_table [19] |
| const char * | gender_noun [GENDER_MAX] |
This file handles various player related functions. This includes both things that operate on the player item, cpl structure, or various commands that the player issues.
This file does most of the handling of commands from the client to server (see commands.c for server->client)
Does most of the work for sending messages to the server
Definition in file player.c.
| void clear_player | ( | ) |
| void client_send_apply | ( | int | tag | ) |
| void client_send_examine | ( | int | tag | ) |
| void client_send_move | ( | int | loc, |
| int | tag, | ||
| int | nrof | ||
| ) |
| void CompleteCmd | ( | unsigned char * | data, |
| int | len | ||
| ) |
| int gender_to_id | ( | const char * | gender | ) |
Transform gender-string into its ID.
| gender | The gender string. |
| void new_player | ( | long | tag, |
| long | weight, | ||
| short | face | ||
| ) |
| void send_command | ( | const char * | command | ) |
| void set_weight_limit | ( | uint32 | wlim | ) |
| void widget_menu_event | ( | widgetdata * | widget, |
| int | x, | ||
| int | y | ||
| ) |
| void widget_menuitem_event | ( | widgetdata * | widget, |
| int | x, | ||
| int | y, | ||
| void(*)(widgetdata *, int, int) | menu_func_ptr | ||
| ) |
| void widget_player_data_event | ( | widgetdata * | widget, |
| int | x, | ||
| int | y | ||
| ) |
| void widget_player_stats | ( | widgetdata * | widget | ) |
| void widget_show_container | ( | widgetdata * | widget | ) |
| void widget_show_main_lvl | ( | widgetdata * | widget | ) |
| void widget_show_player_data | ( | widgetdata * | widget | ) |
| void widget_show_player_doll | ( | widgetdata * | widget | ) |
| void widget_show_player_doll_event | ( | ) |
| void widget_show_regeneration | ( | widgetdata * | widget | ) |
| void widget_show_skill_exp | ( | widgetdata * | widget | ) |
| void widget_skillgroups | ( | widgetdata * | widget | ) |
| const char* gender_noun[GENDER_MAX] |
_player_doll_pos player_doll[PDOLL_INIT] [static] |
{
{93, 55},
{93, 8},
{93, 100},
{93, 158},
{135, 95},
{50, 95},
{50, 134},
{135, 134},
{54, 51},
{141, 10},
{5, 148},
{180, 148},
{5, 108},
{180, 108},
{43, 10},
{4, 10}
}
Player doll item positions.
Used to determine where to put item sprites on the player doll.
float weapon_speed_table[19] [static] |
1.7.4