Crossfire Server, Trunk
knowledge_type Struct Reference
+ Collaboration diagram for knowledge_type:

Data Fields

knowledge_add_item add
 
knowledge_attempt attempt_alchemy
 
knowledge_detail detail
 
const char * face
 
knowledge_face item_face
 
const char * name
 
knowledge_summary summary
 
const char * type
 
knowledge_can_use_alchemy use_alchemy
 
knowledge_is_valid_item validate
 

Detailed Description

One item type that may be known to the player.

Definition at line 132 of file knowledge.cpp.

Field Documentation

◆ add

knowledge_add_item knowledge_type::add

Add the item to the knowledge store.

Definition at line 137 of file knowledge.cpp.

◆ attempt_alchemy

knowledge_attempt knowledge_type::attempt_alchemy

Definition at line 140 of file knowledge.cpp.

Referenced by knowledge_send_info().

◆ detail

knowledge_detail knowledge_type::detail

Display the detailed description.

Definition at line 135 of file knowledge.cpp.

◆ face

const char* knowledge_type::face

Face for the type, as a basename.

Definition at line 141 of file knowledge.cpp.

◆ item_face

knowledge_face knowledge_type::item_face

Face for an item, if not defined the face it used.

Definition at line 142 of file knowledge.cpp.

◆ name

const char* knowledge_type::name

Type name for player, to use with 'list'.

Definition at line 138 of file knowledge.cpp.

Referenced by knowledge_do_display().

◆ summary

knowledge_summary knowledge_type::summary

Display the short description.

Definition at line 134 of file knowledge.cpp.

◆ type

const char* knowledge_type::type

Type internal code, musn't have a double dot, must be unique ingame.

Definition at line 133 of file knowledge.cpp.

Referenced by knowledge_display(), knowledge_do_display(), knowledge_known(), and knowledge_send_info().

◆ use_alchemy

knowledge_can_use_alchemy knowledge_type::use_alchemy

If not null, checks if an item can be used in alchemy.

Definition at line 139 of file knowledge.cpp.

Referenced by knowledge_item_can_be_used_alchemy().

◆ validate

knowledge_is_valid_item knowledge_type::validate

Validate the specific value.

Definition at line 136 of file knowledge.cpp.


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