Atrinik Server 2.5
Data Structures | Defines | Typedefs | Enumerations | Variables
include/player.h File Reference

Go to the source code of this file.

Data Structures

struct  _level_color
struct  player_path
struct  pl_player

Defines

#define PLAYER_AFLAG_FIGHT   1
#define PLAYER_AFLAG_ENEMY   2
#define PLAYER_AFLAG_ADDFRAME   4
#define MAX_QUICKSLOT   32
#define PLAYER_PATH_MAX_FAILS   15
#define PLAYER_NAME_MIN   2
#define PLAYER_NAME_MAX   12
#define PLAYER_PASSWORD_MIN   2
#define PLAYER_PASSWORD_MAX   30

Typedefs

typedef struct _level_color _level_color
typedef enum rangetype rangetype
typedef struct player_path player_path
typedef struct pl_player player

Enumerations

enum  {
  FIRE_MODE_NONE = -1, FIRE_MODE_BOW, FIRE_MODE_SPELL, FIRE_MODE_WAND,
  FIRE_MODE_SKILL, FIRE_MODE_THROW, FIRE_MODE_SUMMON
}
enum  rangetype {
  range_none = 0, range_bow = 1, range_magic = 2, range_wand = 3,
  range_rod = 4, range_scroll = 5, range_horn = 6, range_skill = 7
}
enum  {
  PLAYER_EQUIP_MAIL, PLAYER_EQUIP_GAUNTLET, PLAYER_EQUIP_BRACER, PLAYER_EQUIP_HELM,
  PLAYER_EQUIP_BOOTS, PLAYER_EQUIP_CLOAK, PLAYER_EQUIP_GIRDLE, PLAYER_EQUIP_SHIELD,
  PLAYER_EQUIP_RRING, PLAYER_EQUIP_LRING, PLAYER_EQUIP_AMULET, PLAYER_EQUIP_WEAPON,
  PLAYER_EQUIP_BOW, PLAYER_EQUIP_SKILL_ITEM, PLAYER_EQUIP_MAX
}
enum  { READY_OBJ_ARROW, READY_OBJ_THROW, READY_OBJ_MAX }

Variables

_level_color level_color [201]

Detailed Description

Handles player related structures, enums and defines.

Definition in file player.h.


Define Documentation

#define MAX_QUICKSLOT   32

Maximum quickslots allowed.

Definition at line 150 of file player.h.

#define PLAYER_NAME_MAX   12

Maximum length a player name can have.

Definition at line 192 of file player.h.

#define PLAYER_NAME_MIN   2

Minimum length a player name must have.

Definition at line 189 of file player.h.

#define PLAYER_PASSWORD_MAX   30

Maximum length a player password can have.

Definition at line 198 of file player.h.

#define PLAYER_PASSWORD_MIN   2

Minimum length a player password must have.

Definition at line 195 of file player.h.

#define PLAYER_PATH_MAX_FAILS   15

Maximum failures allowed when trying to reach destination path.

Definition at line 153 of file player.h.


Typedef Documentation

typedef struct _level_color _level_color

Level color structure.

typedef struct pl_player player

The player structure.

typedef struct player_path player_path

One path player is attempting to reach.

typedef enum rangetype rangetype

The range types.


Enumeration Type Documentation

anonymous enum

Fire modes submitted from client.

Enumerator:
FIRE_MODE_NONE 

No fire mode.

FIRE_MODE_BOW 

Bow.

FIRE_MODE_SPELL 

Spell.

FIRE_MODE_WAND 

Wand.

FIRE_MODE_SKILL 

Skill.

FIRE_MODE_THROW 

Throwing.

FIRE_MODE_SUMMON 

Golem.

Definition at line 58 of file player.h.

anonymous enum

Player equipment.

Enumerator:
PLAYER_EQUIP_MAIL 

Armor.

PLAYER_EQUIP_GAUNTLET 

Gauntlets.

PLAYER_EQUIP_BRACER 

Bracers.

PLAYER_EQUIP_HELM 

Helmet.

PLAYER_EQUIP_BOOTS 

Boots.

PLAYER_EQUIP_CLOAK 

Cloak.

PLAYER_EQUIP_GIRDLE 

Girdle.

PLAYER_EQUIP_SHIELD 

Shield.

PLAYER_EQUIP_RRING 

Right ring.

PLAYER_EQUIP_LRING 

Left ring.

PLAYER_EQUIP_AMULET 

Amulet.

PLAYER_EQUIP_WEAPON 

Weapon.

PLAYER_EQUIP_BOW 

Bow/crossbow/etc.

PLAYER_EQUIP_SKILL_ITEM 

Skill item.

PLAYER_EQUIP_MAX 

Maximum number of equipment.

Definition at line 100 of file player.h.

anonymous enum

Enumerations of the READY_OBJ_xxx constants used by BINARY_CMD_READY.

Definition at line 181 of file player.h.

enum rangetype

The range types.

Enumerator:
range_none 

No range.

range_bow 

Bow.

range_magic 

Magic.

range_wand 

A wand.

range_rod 

Rod.

range_scroll 

Scroll.

range_horn 

Horn.

range_skill 

Skill.

Definition at line 77 of file player.h.


Variable Documentation

Level colors.

Definition at line 67 of file exp.c.