Crossfire Server, Trunk  1.75.0
archetype Struct Reference

The archetype structure is a set of rules on how to generate and manipulate objects which point to archetypes. More...

#include <object.h>

+ Collaboration diagram for archetype:

Data Fields

object clone
 An object from which to do object_copy() More...
 
archetypehead
 The main part of a linked object. More...
 
archetypemore
 Next part of a linked object. More...
 
sstring name
 More definite name, like "generate_kobold". More...
 
int reference_count
 How many times this temporary archetype is used. More...
 
int8_t tail_x
 
int8_t tail_y
 Where the lower right most portion of the object is in comparison to the head. More...
 

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 483 of file object.h.

Field Documentation

◆ clone

object archetype::clone

An object from which to do object_copy()

Definition at line 487 of file object.h.

Referenced by account_char_add(), add_god_to_list(), add_statbonus(), alchemy_object(), animate_object(), annotate_ob(), apply_changes_to_player(), apply_race_and_class(), arch_to_object(), artifact_describe(), artifact_get_face(), asset_destroy(), assets_finish_archetypes_for_play(), build_race_list_reply(), calculate_difficulty(), can_build_over(), can_pay(), cast_create_food(), cfapi_archetype_get_property(), cfapi_object_set_property(), change_abil(), change_object(), check_loaded_object(), check_login(), check_probe(), check_race_and_class(), command_create(), command_statistics(), cost_approx_str(), cost_string_from_value(), create_player_cmd(), determine_holy_arch(), do_each_skill(), do_item_conversion(), do_monster(), do_spellpath_msg(), doWrite(), dragon_ability_gain(), drain_wand_charge(), dump_abilities(), dump_alchemy_costs(), dump_arch(), dump_gods(), esrv_update_stats(), find_better_arrow(), find_enclosed_spot(), find_next_coin(), fix_object(), fix_player(), fix_summon_pet(), food_each(), free_arch(), gate_type_process(), generate_monster_arch(), get_archetype_struct(), get_player(), get_player_archetype(), god_gives_present(), god_intervention(), hit_with_drain(), identify(), init_dynamic(), is_dragon_pl(), is_special_equipment(), is_true_undead(), key_change_class(), knowledge_alchemy_can_use_item(), knowledge_alchemy_detail(), knowledge_alchemy_summary(), knowledge_god_detail(), knowledge_god_face(), ArchetypeLoader::load(), magic_wall(), make_formula_book(), make_item_from_recipe(), map2_add_ob(), monster_check_apply(), move_aura(), ob_blocked(), object_create_arch(), object_dump(), object_get_multi_size(), object_insert_in_map_at(), object_set_value_s(), pay_from_container(), pets_summon_golem(), pets_summon_object(), place_fountain_with_specials(), play_sound_player_only(), player_can_view(), polymorph_item(), pray_at_altar(), price_base(), process_map(), put_a_monster(), recharge(), recipe_find_ingredient_cost(), recipe_get_face(), Archetypes::recursive_update(), remove_special_prayers(), remove_statbonus(), Archetypes::replace(), save_object_in_sb(), sell_item(), send_arch_info(), send_class_info(), send_race_info(), set_abs_magic(), set_object_face_main(), set_object_face_other(), spring_trap(), transport_type_apply(), trigger_connected(), while(), worship_forbids_use(), ArtifactWriter::write(), write_on_item(), and write_scroll().

◆ head

archetype* archetype::head

The main part of a linked object.

Definition at line 485 of file object.h.

Referenced by artifact_get_face(), cfapi_archetype_get_property(), do_monster(), get_archetype_struct(), ArchetypeLoader::load(), and ArchetypeWriter::write().

◆ more

◆ name

◆ reference_count

int archetype::reference_count

How many times this temporary archetype is used.

If 0, "permanent" archetype.

Definition at line 490 of file object.h.

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

◆ tail_x

int8_t archetype::tail_x

Definition at line 488 of file object.h.

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

◆ 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 488 of file object.h.

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


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