Crossfire Client, Branches  R11627
Spell_struct Struct Reference

#include <client.h>

+ Collaboration diagram for Spell_struct:

Data Fields

uint16 dam
 
sint32 face
 
uint16 grace
 
uint16 level
 
char message [10000]
 
char name [256]
 
struct Spell_structnext
 
uint32 path
 
char * skill
 
uint8 skill_number
 
uint16 sp
 
uint32 tag
 
uint16 time
 

Detailed Description

Definition at line 248 of file client.h.

Field Documentation

uint16 Spell_struct::dam
sint32 Spell_struct::face

Definition at line 268 of file client.h.

Referenced by AddspellCmd(), and update_spell_list().

uint16 Spell_struct::grace
uint16 Spell_struct::level
char Spell_struct::message[10000]

This is plenty, the packets can't be much bigger than this anyway

Definition at line 253 of file client.h.

Referenced by AddspellCmd(), select_spell_event(), and update_spell_information().

char Spell_struct::name[256]

The protocol allows one length bit, so 256 is the maximum name length

Definition at line 250 of file client.h.

Referenced by AddspellCmd(), script_process_cmd(), select_spell_event(), update_spell_information(), and update_spell_list().

uint32 Spell_struct::path

The bitmask of paths this spell belongs to

Definition at line 266 of file client.h.

Referenced by AddspellCmd(), script_process_cmd(), update_spell_information(), and update_spell_list().

char* Spell_struct::skill

Pointer to the skill name, derived from the skill number

Definition at line 264 of file client.h.

Referenced by AddspellCmd(), select_spell_event(), and update_spell_information().

uint8 Spell_struct::skill_number

The index in the skill arrays, plus CS_STAT_SKILLINFO

Definition at line 262 of file client.h.

Referenced by AddspellCmd(), and script_process_cmd().

uint16 Spell_struct::sp
uint32 Spell_struct::tag

Used to identify the spell by updspell

Definition at line 255 of file client.h.

Referenced by AddspellCmd(), DeleteSpell(), inscribe_magical_scroll(), script_process_cmd(), select_spell_event(), update_spell_information(), and UpdspellCmd().

uint16 Spell_struct::time

number of ticks to cast

Definition at line 258 of file client.h.

Referenced by AddspellCmd(), and script_process_cmd().


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