Crossfire Server, Trunk
|
#include <object.h>
Data Fields | |
object | clone |
archetype * | head |
archetype * | more |
sstring | name |
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 archetype::clone |
An object from which to do object_copy()
Definition at line 487 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_item_conversion(), do_monster(), do_spellpath_msg(), doWrite(), dragon_ability_gain(), drain_wand_charge(), dump_abilities(), dump_alchemy_costs(), dump_arch(), dump_gods(), examine_fluff(), 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().
archetype* archetype::head |
The main part of a linked object
Definition at line 485 of file object.h.
Referenced by ArchetypeComboBox::ArchetypeComboBox(), ArchetypeWrapper::childIndex(), ArchetypeWrapper::childrenCount(), do_monster(), knowledge_monster_validate(), and ArchetypeLoader::load().
archetype* archetype::more |
Next part of a linked object
Definition at line 486 of file object.h.
Referenced by ArchetypeWrapper::child(), ArchetypeWrapper::childIndex(), command_create(), fix_container_multipart(), fix_summon_pet(), hit_player(), move_creator(), object_create_arch(), object_fix_multipart(), object_get_multi_size(), object_handle_death_animation(), pets_summon_object(), place_monsters(), and put_a_monster().
sstring archetype::name |
More definite name, like "generate_kobold"
Definition at line 484 of file object.h.
Referenced by add_book_to_list(), animate_weapon(), apply_builder_item(), apply_builder_wall(), apply_builder_window(), ArchetypeComboBox::ArchetypeComboBox(), ObjectWrapper::archName(), attempt_recipe(), cast_cone(), command_use(), common_pre_ob_move_on(), ArchetypeWrapper::displayName(), TreasureWrapper::displayName(), TreasureWrapper::doAddChild(), ArchetypeWrapper::drag(), dump_abilities(), dump_gods(), CRECombatSimulator::fight(), find_recipe(), fix_flesh_item(), fix_summon_pet(), fix_walls(), free_arch(), get_exit_seed(), knowledge_alchemy_attempt(), ArchetypeLoader::load(), main(), make_map_walls(), matches_sacrifice(), mood_change(), CREMainWindow::onReportSummon(), pets_summon_object(), pick_joined_wall(), place_fountain_with_specials(), pray_at_altar(), Archetypes::recursive_update(), save_object_in_sb(), START_TEST(), and ArchetypeWrapper::uses().
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(), fix_flesh_item(), object_copy_no_speed(), and save_object_in_sb().
int8_t archetype::tail_x |
Definition at line 488 of file object.h.
Referenced by ArchetypeLoader::load(), map2_add_ob(), and monsterFight().
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 ArchetypeLoader::load(), map2_add_ob(), and monsterFight().