Crossfire Server, Trunk
R21670
|
#include <object.h>
Data Fields | |
object | clone |
struct archt * | head |
struct archt * | more |
const char * | name |
struct archt * | next |
int | reference_count |
int8_t | tail_x |
int8_t | tail_y |
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
object archt::clone |
An object from which to do object_copy()
Definition at line 472 of file object.h.
Referenced by account_char_add(), add_god_to_list(), add_statbonus(), addArchetypes(), alchemy_object(), alchemyTable(), animate_object(), animate_weapon(), annotate_ob(), apply_changes_to_player(), apply_race_and_class(), arch_to_object(), CREUtils::archetypeNode(), artifact_describe(), artifact_get_face(), CREUtils::artifactNode(), CREMapInformationManager::browseMaps(), build_class_list_reply(), build_race_list_reply(), calc_skill_exp(), calculate_difficulty(), can_build_over(), can_pay(), cast_cone(), cast_create_food(), cast_detection(), cfapi_archetype_get_property(), cfapi_object_set_property(), change_abil(), change_object(), check_generators(), check_login(), check_probe(), check_race_and_class(), check_spells(), check_summoned(), command_create(), command_statistics(), CREArtifactPanel::computeMadeViaAlchemy(), cost_approx_str(), cost_string_from_value(), create_all_treasures(), create_one_treasure(), create_player_cmd(), CRECombatSimulator::CRECombatSimulator(), CREFormulaePanel::CREFormulaePanel(), describe_monster(), determine_holy_arch(), dragon_ability_gain(), drain_wand_charge(), dump_abilities(), dump_alchemy_costs(), dump_arch(), dump_gods(), dump_monster_treasure(), dump_monster_treasure_rec(), dump_spells(), esrv_update_stats(), examine(), CREResourcesWindow::fillArchetypes(), find_archetype_by_object_name(), find_archetype_by_object_type_name(), find_better_arrow(), find_enclosed_spot(), find_ingred_cost(), find_next_coin(), find_treasure_by_name(), first_arch_pass(), fix_object(), fix_player(), fix_summon_pet(), CREUtils::formulaeNode(), free_arch(), gate_type_process(), generate_monster_arch(), get_archetype_by_skill_name(), get_archetype_by_type_subtype(), get_god_for_race(), get_player(), get_player_archetype(), get_spell_by_name(), god_gives_present(), god_intervention(), identify(), improve_armour(), init_archetable(), init_dynamic(), init_gods(), init_mon_info(), init_races(), init_skills(), is_dragon_pl(), is_special_equipment(), is_true_undead(), key_change_class(), knowledge_alchemy_can_use_item(), knowledge_alchemy_detail(), knowledge_alchemy_face(), knowledge_alchemy_summary(), knowledge_god_detail(), knowledge_god_face(), knowledge_monster_detail(), knowledge_monster_face(), knowledge_monster_summary(), knowledge_monster_validate(), local_check_loaded_object(), magic_wall(), main(), make_formula_book(), map2_add_ob(), monster_can_pick(), monster_check_apply(), monsterFight(), monsterTable(), ob_blocked(), object_create_arch(), object_dump(), object_get_multi_size(), object_insert_in_map_at(), object_set_value_s(), old_describe_monster(), CREMainWindow::onReportAlchemy(), CREMainWindow::onReportDuplicate(), CREMainWindow::onReportPlayer(), CREMainWindow::onReportSpellDamage(), CREMainWindow::onReportSpells(), CREMainWindow::onReportSummon(), pay_from_container(), pets_summon_golem(), pets_summon_object(), place_fountain_with_specials(), player_can_view(), pntr_to_god_obj(), polymorph_item(), polymorph_living(), pray_at_altar(), price_base(), process_map(), put_a_monster(), recharge(), remove_special_prayers(), remove_statbonus(), reportSummon(), save_object_in_sb(), second_arch_pass(), sell_item(), send_arch_info(), send_map_info(), send_race_info(), set_abs_magic(), set_object_face_main(), set_object_face_other(), CREWrapperFormulae::setFormulae(), CREFacePanel::setItem(), CRETreasurePanel::setItem(), CREArtifactPanel::setItem(), CREFormulaePanel::setItem(), CREArchetypePanel::setItem(), CREAnimationPanel::setItem(), sort_archetypes(), spellpath_msg(), spellsTable(), spring_trap(), START_TEST(), transport_type_apply(), treasure_find_matching_type(), trigger_connected(), worship_forbids_use(), write_on_item(), and write_scroll().
struct archt* archt::head |
The main part of a linked object
Definition at line 470 of file object.h.
Referenced by cfapi_archetype_get_property(), CRECombatSimulator::CRECombatSimulator(), first_arch_pass(), CREMainWindow::onReportPlayer(), and START_TEST().
struct archt* archt::more |
Next part of a linked object
Definition at line 471 of file object.h.
Referenced by cfapi_archetype_get_property(), change_object(), command_create(), dump_all_archetypes(), CREResourcesWindow::fillArchetypes(), fix_container_multipart(), fix_summon_pet(), free_all_archs(), generate_monster_arch(), hit_player(), init_archetable(), local_check_loaded_object(), malloc_info(), move_creator(), ob_blocked(), object_create_arch(), object_fix_multipart(), object_get_multi_size(), pets_summon_object(), place_monsters(), put_a_monster(), CREFacePanel::setItem(), CRETreasurePanel::setItem(), CREArchetypePanel::setItem(), CREAnimationPanel::setItem(), and START_TEST().
const char* archt::name |
More definite name, like "generate_kobold"
Definition at line 468 of file object.h.
Referenced by add_arch(), add_book_to_list(), addArchetypes(), alchemy_failure_effect(), animate_weapon(), apply_builder_item(), apply_builder_remove(), apply_builder_wall(), apply_builder_window(), apply_map_builder(), CREUtils::archetypeNode(), artifact_get_face(), attempt_recipe(), CREMapInformationManager::browseMaps(), build_class_list_reply(), build_race_list_reply(), can_build_over(), cast_cone(), cast_raise_dead_spell(), cfapi_archetype_get_property(), cfapi_object_get_property(), check_generators(), check_inv_recursive(), check_spells(), check_summoned(), CREMapInformationManager::checkInventory(), command_use(), common_ob_move_on(), common_pre_ob_move_on(), CREArtifactPanel::computeMadeViaAlchemy(), convert_item(), count_unpaid(), create_player_cmd(), CRECombatSimulator::CRECombatSimulator(), CREFormulaePanel::CREFormulaePanel(), deathstrike_living(), do_tell(), dump_abilities(), dump_gods(), dump_monster_treasure(), dump_races(), dump_spells(), eat_item(), examine_monster(), CRECombatSimulator::fight(), find_transmution_ob(), fix_flesh_item(), fix_object(), fix_summon_pet(), fix_walls(), free_arch(), get_exit_seed(), get_ob_diff(), get_spell_by_name(), CREMapInformationManager::getArchetypeUse(), hit_map(), hit_player(), init_archetable(), init_races(), is_road(), key_change_class(), knowledge_alchemy_attempt(), legal_artifact_combination(), load_treasures(), local_check_loaded_object(), main(), make_map_walls(), matches_sacrifice(), mon_info_msg(), mood_change(), move_duplicator(), move_teleporter(), object_dump(), object_find_by_arch_name(), object_find_by_type_and_arch_name(), object_in_icecube(), CREMainWindow::onReportDuplicate(), CREMainWindow::onReportPlayer(), pets_summon_object(), pick_joined_wall(), place_fountain_with_specials(), pray_at_altar(), print_monsters(), CREMapInformationManager::process(), process_events(), resurrect_player(), save_object_in_sb(), save_throw_object(), second_arch_pass(), send_map_info(), CREWrapperArchetype::setArchetype(), should_director_abort(), show_commands(), START_TEST(), transmute_materialname(), and try_find_archetype().
struct archt* archt::next |
Next archetype in a linked list
Definition at line 469 of file object.h.
Referenced by addArchetypes(), artifact_get_face(), CREMapInformationManager::browseMaps(), build_class_list_reply(), build_race_list_reply(), cast_create_food(), cfapi_archetype_get_property(), check_generators(), check_spells(), check_summoned(), command_kill_pets(), command_showpets(), CRECombatSimulator::CRECombatSimulator(), CREFormulaePanel::CREFormulaePanel(), dump_abilities(), dump_all_archetypes(), dump_monster_treasure(), dump_spells(), fillEvents(), find_archetype_by_object_name(), find_archetype_by_object_type_name(), find_ingred_cost(), first_arch_pass(), free_all_archs(), get_archetype_by_skill_name(), get_archetype_by_type_subtype(), get_player_archetype(), get_spell_by_name(), init_archetable(), init_dynamic(), init_gods(), init_mon_info(), init_skills(), ResourcesManager::load(), main(), malloc_info(), CREMainWindow::onReportAlchemy(), CREMainWindow::onReportDuplicate(), CREMainWindow::onReportPlayer(), CREMainWindow::onReportSpellDamage(), CREMainWindow::onReportSpells(), CREMainWindow::onReportSummon(), polymorph_item(), polymorph_living(), print_monsters(), send_map_info(), CREFacePanel::setItem(), CRETreasurePanel::setItem(), CREArchetypePanel::setItem(), CREAnimationPanel::setItem(), spellpath_msg(), spellsTable(), and START_TEST().
int archt::reference_count |
How many times this temporary archetype is used. If 0, "permanent" archetype.
Definition at line 475 of file object.h.
Referenced by cast_detection(), fix_flesh_item(), local_check_loaded_object(), object_copy(), object_free(), and save_object_in_sb().
int8_t archt::tail_x |
Definition at line 473 of file object.h.
Referenced by first_arch_pass(), local_check_loaded_object(), map2_add_ob(), and monsterFight().
int8_t archt::tail_y |
Where the lower right most portion of the object is in comparison to the head.
Definition at line 473 of file object.h.
Referenced by first_arch_pass(), local_check_loaded_object(), map2_add_ob(), and monsterFight().