Atrinik Client  4.0
Data Fields
Player_Struct Struct Reference

#include <player.h>

Data Fields

tag_t container_tag
float weight_limit
int dm
int target_code
char target_color [COLOR_BUF]
char target_name [MAX_BUF]
int warn_hp
tag_t mark_count
float gen_hp
float gen_sp
float action_timer
uint8_t fire_on
uint8_t run_on
float real_weight
int warn_statdown
int warn_statup
Stats stats
char target_hp
char name [40]
char partyname [MAX_BUF]
char partyjoin [MAX_BUF]
tag_t dragging_tag
int dragging_startx
int dragging_starty
int server_socket_version
size_t target_object_index
uint8_t target_is_friend
uint8_t gender
tag_t equipment [PLAYER_EQUIP_MAX]
uint32_t path_attuned
uint32_t path_repelled
uint32_t path_denied
player_state_t state
char account [MAX_BUF]
char password [MAX_BUF]
char host [MAX_BUF]
char last_host [MAX_BUF]
time_t last_time
char http_url [MAX_BUF]
uint8_t combat
uint8_t combat_force

Detailed Description

The player structure.

Definition at line 109 of file player.h.

Field Documentation

char Player_Struct::account[MAX_BUF]

Account name that we are logged into.

Definition at line 227 of file player.h.

float Player_Struct::action_timer

Skill cooldown time.

Definition at line 152 of file player.h.

object* Player_Struct::below

Items below the player (pl.below->inv).

Definition at line 114 of file player.h.

uint8_t Player_Struct::combat

If 1, the player is ready to engage in combat and will swing their weapon at targeted enemies.

Definition at line 258 of file player.h.

uint8_t Player_Struct::combat_force

If 1, the player will swing their weapon at their target, be it friend or foe.

Definition at line 264 of file player.h.

tag_t Player_Struct::container_tag

Tag of the open container.

Definition at line 123 of file player.h.

int Player_Struct::dm

Are we a DM?

Definition at line 129 of file player.h.

int Player_Struct::dragging_startx

X position where the item was dragged from.

Definition at line 192 of file player.h.

int Player_Struct::dragging_starty

Y position where the item was dragged from.

Definition at line 197 of file player.h.

tag_t Player_Struct::dragging_tag

Which item is being dragged.

Definition at line 187 of file player.h.

uint8_t Player_Struct::fire_on

1 if fire key is pressed.

Definition at line 155 of file player.h.

float Player_Struct::gen_hp

HP regeneration.

Definition at line 146 of file player.h.

float Player_Struct::gen_sp

Mana regeneration.

Definition at line 149 of file player.h.

uint8_t Player_Struct::gender

Player's gender.

Definition at line 212 of file player.h.

char Player_Struct::host[MAX_BUF]

Current IP.

Definition at line 237 of file player.h.

char Player_Struct::http_url[MAX_BUF]

HTTP data URL.

Definition at line 252 of file player.h.

object* Player_Struct::interface

Objects in the interface GUI.

Definition at line 120 of file player.h.

widgetdata* Player_Struct::inventory_focus

Which inventory widget has the focus.

Definition at line 200 of file player.h.

char Player_Struct::last_host[MAX_BUF]

Last IP that the account was used from.

Definition at line 242 of file player.h.

time_t Player_Struct::last_time

Last time the account was used.

Definition at line 247 of file player.h.

tag_t Player_Struct::mark_count

Currently marked item.

Definition at line 143 of file player.h.

char Player_Struct::name[40]

Player's name.

Definition at line 173 of file player.h.

object* Player_Struct::ob

Player object.

Definition at line 111 of file player.h.

char Player_Struct::partyjoin[MAX_BUF]

Buffer for party name the player is joining, but has to enter password first.

Definition at line 182 of file player.h.

char Player_Struct::partyname[MAX_BUF]

Party name this player is member of.

Definition at line 176 of file player.h.

char Player_Struct::password[MAX_BUF]

Password that was used to log in.

Definition at line 232 of file player.h.

float Player_Struct::real_weight

Player's carrying weight.

Definition at line 161 of file player.h.

uint8_t Player_Struct::run_on

1 if run key is on.

Definition at line 158 of file player.h.

object* Player_Struct::sack

Inventory of an open container.

Definition at line 117 of file player.h.

int Player_Struct::server_socket_version

Version of the server's socket.

Definition at line 203 of file player.h.

Stats Player_Struct::stats

Player stats.

Definition at line 167 of file player.h.

int Player_Struct::target_code


Definition at line 132 of file player.h.

char Player_Struct::target_color[COLOR_BUF]

Target's color.

Definition at line 135 of file player.h.

char Player_Struct::target_hp

HP of our target in percent.

Definition at line 170 of file player.h.

char Player_Struct::target_name[MAX_BUF]

Target name.

Definition at line 138 of file player.h.

float Player_Struct::weight_limit

Player's weight limit.

Definition at line 126 of file player.h.

The documentation for this struct was generated from the following file: