Crossfire Server, Trunk
archetype Struct Reference

#include <object.h>

+ Collaboration diagram for archetype:

Data Fields

object clone
 
archetypehead
 
archetypemore
 
sstring name
 
int reference_count
 
int8_t tail_x
 
int8_t tail_y
 

Detailed Description

The archetype structure is a set of rules on how to generate and manipulate objects which point to archetypes. This probably belongs in arch.h, but there really doesn't appear to be much left in the archetype - all it really is is a holder for the object and pointers. This structure should get removed, and just replaced by the object structure

Definition at line 472 of file object.h.

Field Documentation

◆ clone

object archetype::clone

An object from which to do object_copy()

Definition at line 476 of file object.h.

Referenced by add_god_to_list(), alchemy_object(), animate_weapon(), annotate_ob(), apply_race_and_class(), arch_to_object(), ArchetypeComboBox::ArchetypeComboBox(), ArchetypeWrapper::ArchetypeWrapper(), build_class_list_reply(), build_race_list_reply(), calc_skill_exp(), calculate_difficulty(), can_build_over(), cast_cone(), cast_create_food(), cast_detection(), check_probe(), check_race_and_class(), command_create(), cost_approx_str(), cost_string_from_value(), determine_holy_arch(), ArchetypeWrapper::displayIcon(), RecipeWrapper::displayIcon(), TreasureWrapper::displayIcon(), TreasureWrapper::displayName(), do_each_skill(), do_monster(), do_spellpath_msg(), doWrite(), dragon_ability_gain(), drain_wand_charge(), dump_abilities(), dump_alchemy_costs(), dump_arch(), dump_gods(), examine(), find_better_arrow(), find_next_coin(), food_each(), free_arch(), generate_monster_arch(), get_player_archetype(), god_gives_present(), god_intervention(), init_dynamic(), isValidArchFlesh(), knowledge_god_detail(), knowledge_god_face(), knowledge_monster_detail(), knowledge_monster_face(), knowledge_monster_summary(), knowledge_monster_validate(), ArchetypeLoader::load(), magic_wall(), main(), make_formula_book(), monster_can_pick(), monster_check_apply(), monsterFight(), monsterTable(), move_aura(), object_create_arch(), object_dump(), object_get_multi_size(), CREMainWindow::onReportSummon(), pay_from_container(), pets_summon_golem(), pets_summon_object(), place_fountain_with_specials(), play_sound_player_only(), polymorph_item(), put_a_monster(), recharge(), recipe_find_ingredient_cost(), Archetypes::recursive_update(), remove_special_prayers(), Archetypes::replace(), reportSummon(), save_object_in_sb(), sell_item(), send_class_info(), send_race_info(), set_object_face_other(), TreasureWrapper::setArch(), sort_archetypes(), spellsTable(), spring_trap(), transport_type_apply(), TreasureWrapper::TreasureWrapper(), ArtifactPanel::updateItem(), ArchetypeWrapper::uses(), ArtifactWriter::write(), write_on_item(), and write_scroll().

◆ head

◆ more

◆ name

◆ reference_count

int archetype::reference_count

How many times this temporary archetype is used. If 0, "permanent" archetype.

Definition at line 479 of file object.h.

Referenced by cast_detection(), fix_flesh_item(), object_copy_no_speed(), and save_object_in_sb().

◆ tail_x

int8_t archetype::tail_x

Definition at line 477 of file object.h.

Referenced by ArchetypeLoader::load(), map2_add_ob(), and monsterFight().

◆ tail_y

int8_t archetype::tail_y

Where the lower right most portion of the object is in comparison to the head.

Definition at line 477 of file object.h.

Referenced by ArchetypeLoader::load(), map2_add_ob(), and monsterFight().


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