Crossfire Server, Trunk
is_valid_types_gen Namespace Reference

Variables

 end_type_list = re.compile(r"^(([^}]*};).*)$")
 
 found = start_type_list.search(line)
 
 line = file.readline()
 
int max_obj = -1
 
bool start_handling = False
 
 start_type_list = re.compile(r"enum object_type")
 
list type = [False] * 255
 
 type_listing_match = re.compile(r"^\W*(\w+)\s*\=\s*(\d+)\,?.*$")
 

Detailed Description

 * Crossfire -- cooperative multi-player graphical RPG and adventure game
 *
 * Copyright (c) 1999-2021 The Crossfire Development Team
 * Copyright (c) 1992 Frank Tore Johansen
 *
 * Crossfire is free software and comes with ABSOLUTELY NO WARRANTY. You are
 * welcome to redistribute it under certain conditions. For details, please
 * see COPYING and LICENSE.
 *
 * The authors can be reached via e-mail at <crossfire@metalforge.org>.

Variable Documentation

◆ end_type_list

is_valid_types_gen.end_type_list = re.compile(r"^(([^}]*};).*)$")

Definition at line 31 of file is_valid_types_gen.py.

◆ found

◆ line

◆ max_obj

is_valid_types_gen.max_obj = -1

Definition at line 24 of file is_valid_types_gen.py.

◆ start_handling

bool is_valid_types_gen.start_handling = False

Definition at line 33 of file is_valid_types_gen.py.

◆ start_type_list

is_valid_types_gen.start_type_list = re.compile(r"enum object_type")

Definition at line 29 of file is_valid_types_gen.py.

◆ type

list is_valid_types_gen.type = [False] * 255

Definition at line 25 of file is_valid_types_gen.py.

Referenced by add_book(), add_char_field(), add_required_parameter(), add_type_to_attribute(), artifact_msg(), AssetModel.assetModified(), AssetOriginAndCreationDialog.AssetOriginAndCreationDialog(), assets_pack(), attack_message(), attack_ob_simple(), AttackMessagesWrapper.AttackMessagesWrapper(), QuestApplyIf.can_apply(), cf_add_string(), cf_archetype_get_clone(), cf_archetype_get_first(), cf_archetype_get_head(), cf_archetype_get_more(), cf_archetype_get_name(), cf_archetype_get_next(), cf_cost_string_from_value(), cf_create_object(), cf_create_object_by_name(), cf_find_animation(), cf_find_face(), cf_find_string(), cf_fix_object(), cf_free_string(), cf_friendlylist_get_first(), cf_friendlylist_get_next(), cf_get_directory(), cf_get_empty_map(), cf_get_maps_directory(), cf_get_month_name(), cf_get_periodofday_name(), cf_get_season_name(), cf_get_time(), cf_get_weekday_name(), cf_identify(), cf_log(), cf_log_plain(), cf_map_change_light(), cf_map_find_by_archetype_name(), cf_map_get_flags(), cf_map_get_int_property(), cf_map_get_map(), cf_map_get_map_property(), cf_map_get_object_at(), cf_map_get_region_property(), cf_map_get_sstring_property(), cf_map_has_been_loaded(), cf_map_insert_object(), cf_map_insert_object_around(), cf_map_insert_object_there(), cf_map_message(), cf_map_set_int_property(), cf_map_set_string_property(), cf_map_trigger_connected(), cf_object_apply(), cf_object_apply_below(), cf_object_cast_spell(), cf_object_change_abil(), cf_object_change_exp(), cf_object_change_map(), cf_object_check_for_spell(), cf_object_check_trigger(), cf_object_clone(), cf_object_drop(), cf_object_find_by_arch_name(), cf_object_find_by_name(), cf_object_forget_spell(), cf_object_free_drop_inventory(), cf_object_get_archetype_property(), cf_object_get_double_property(), cf_object_get_flag(), cf_object_get_float_property(), cf_object_get_int64_property(), cf_object_get_int_property(), cf_object_get_key(), cf_object_get_long_property(), cf_object_get_map_property(), cf_object_get_movetype_property(), cf_object_get_msg(), cf_object_get_nrof(), cf_object_get_object_property(), cf_object_get_partylist_property(), cf_object_get_resistance(), cf_object_get_sstring_property(), cf_object_get_string_property(), cf_object_get_weight(), cf_object_get_weight_limit(), cf_object_insert_in_ob(), cf_object_insert_object(), cf_object_learn_spell(), cf_object_move(), cf_object_move_to(), cf_object_out_of_map(), cf_object_pay_amount(), cf_object_pay_item(), cf_object_perm_exp(), cf_object_pickup(), cf_object_present_archname_inside(), cf_object_query_money(), cf_object_remove(), cf_object_remove_depletion(), cf_object_say(), cf_object_set_animation(), cf_object_set_face(), cf_object_set_flag(), cf_object_set_float_property(), cf_object_set_int64_property(), cf_object_set_int_property(), cf_object_set_key(), cf_object_set_long_property(), cf_object_set_movetype_property(), cf_object_set_nrof(), cf_object_set_object_property(), cf_object_set_resistance(), cf_object_set_string_property(), cf_object_set_weight(), cf_object_set_weight_limit(), cf_object_split(), cf_object_teleport(), cf_object_transfer(), cf_object_update(), cf_object_user_event(), cf_party_get_first(), cf_party_get_first_player(), cf_party_get_name(), cf_party_get_next(), cf_party_get_next_player(), cf_party_get_password(), cf_player_arrest(), cf_player_can_pay(), cf_player_find(), cf_player_get_ip(), cf_player_get_marked_item(), cf_player_get_title(), cf_player_knowledge_give(), cf_player_knowledge_has(), cf_player_message(), cf_player_move(), cf_player_set_marked_item(), cf_player_set_party(), cf_player_set_title(), cf_query_name(), cf_query_name_pl(), cf_quest_get_player_state(), cf_quest_set_player_state(), cf_quest_start(), cf_quest_was_completed(), cf_random_map_generate(), cf_random_map_set_variable(), cf_re_cmp(), cf_region_get_first(), cf_region_get_jail_path(), cf_region_get_jail_x(), cf_region_get_jail_y(), cf_region_get_longname(), cf_region_get_message(), cf_region_get_name(), cf_region_get_next(), cf_region_get_parent(), cf_spring_trap(), cf_strdup_local(), cf_system_get_archetype_vector(), cf_system_get_map_vector(), cf_system_get_object_vector(), cf_system_get_party_vector(), cf_system_get_region_vector(), cf_system_register_command(), cf_system_register_command_extra(), cf_system_register_global_event(), cf_system_unregister_command(), cf_system_unregister_global_event(), cf_timer_create(), cf_timer_destroy(), cfanim_globalEventListener(), cfapi_archetype_get_property(), cfapi_cost_string_from_value(), cfapi_friendlylist_get_next(), cfapi_generate_random_map(), cfapi_get_hooks(), cfapi_get_time(), cfapi_log(), cfapi_map_change_light(), cfapi_map_create_path(), cfapi_map_delete_map(), cfapi_map_find_by_archetype_name(), cfapi_map_get_map(), cfapi_map_get_map_property(), cfapi_map_get_object_at(), cfapi_map_has_been_loaded(), cfapi_map_message(), cfapi_map_out_of_map(), cfapi_map_set_map_property(), cfapi_map_trigger_connected(), cfapi_map_update_position(), cfapi_object_apply(), cfapi_object_apply_below(), cfapi_object_cast(), cfapi_object_change_abil(), cfapi_object_change_exp(), cfapi_object_check_spell(), cfapi_object_check_trigger(), cfapi_object_clean_object(), cfapi_object_clear(), cfapi_object_clone(), cfapi_object_create(), cfapi_object_delete(), cfapi_object_describe(), cfapi_object_distance(), cfapi_object_drain(), cfapi_object_drop(), cfapi_object_find_archetype_inside(), cfapi_object_find_by_arch_name(), cfapi_object_find_by_name(), cfapi_object_fix(), cfapi_object_forget_spell(), cfapi_object_get_key(), cfapi_object_get_property(), cfapi_object_give_skill(), cfapi_object_identify(), cfapi_object_insert(), cfapi_object_learn_spell(), cfapi_object_merge(), cfapi_object_move(), cfapi_object_on_same_map(), cfapi_object_pay_amount(), cfapi_object_pay_item(), cfapi_object_perm_exp(), cfapi_object_pickup(), cfapi_object_query_money(), cfapi_object_remove(), cfapi_object_remove_depletion(), cfapi_object_reset(), cfapi_object_say(), cfapi_object_set_key(), cfapi_object_set_property(), cfapi_object_split(), cfapi_object_spring_trap(), cfapi_object_teleport(), cfapi_object_transfer(), cfapi_object_transmute(), cfapi_object_update(), cfapi_object_user_event(), cfapi_party_get_property(), cfapi_player_can_pay(), cfapi_player_find(), cfapi_player_knowledge(), cfapi_player_message(), cfapi_player_quest(), cfapi_region_get_property(), cfapi_register_command(), cfapi_set_random_map_variable(), cfapi_system_add_string(), cfapi_system_check_path(), cfapi_system_directory(), cfapi_system_find_animation(), cfapi_system_find_face(), cfapi_system_find_string(), cfapi_system_get_archetype_vector(), cfapi_system_get_map_vector(), cfapi_system_get_object_vector(), cfapi_system_get_party_vector(), cfapi_system_get_region_vector(), cfapi_system_re_cmp(), cfapi_system_register_global_event(), cfapi_system_remove_string(), cfapi_system_strdup_local(), cfapi_system_unregister_global_event(), cfapi_timer_create(), cfapi_timer_destroy(), cfapi_unregister_command(), cflogger_globalEventListener(), cfnewspaper_globalEventListener(), cfpython_globalEventListener(), cfrhg_globalEventListener(), checksum(), citylife_globalEventListener(), clock_listener(), AssetCollector.collect(), command_register(), command_register_extra(), nlohmann::detail::dtoa_impl.compute_boundaries(), convertType(), copy_attributes(), copy_default_attributes(), CREMainWindow.CREMainWindow(), Crossfire_Map_new(), Crossfire_Object_new(), Crossfire_Player_new(), decode_string(), determine_holy_arch(), did_make_save_item(), do_print_ext(), do_register(), draw_ext_info(), draw_ext_info_format(), dump_type(), dump_types(), eventListener(), ext_info_map(), ext_info_map_except(), ext_info_map_except2(), find_archetype_by_object_type_name(), find_arrow(), find_artifactlist(), find_better_arrow(), find_type_definition(), Archetypes.findByObjectTypeName(), Archetypes.findBySkillNameAndType(), Archetypes.findByTypeSubtype(), nlohmann::detail.from_json(), get_archetype_by_skill_name(), get_archetype_by_type_subtype(), get_attack_message(), get_attack_message_type(), get_attribute_for_type(), get_pointed_target(), nlohmann::basic_json.get_ref_impl(), getPluginProperty(), globalEventListener(), nlohmann::detail.hash(), hit_map(), hit_player(), ignore_attribute(), ignore_attributes(), init_book_archive(), inscribe_scroll_cmd(), is_type_valid(), knowledge_display(), knowledge_find(), knowledge_give(), knowledge_god_add(), knowledge_monster_add(), knowledge_player_knows(), knowledge_read_player_data(), knowledge_send_info(), main(), map_find_by_type(), QuestConditionalDrop.matches(), object_find_by_type(), object_find_by_type_and_arch_name(), object_find_by_type_and_name(), object_find_by_type_and_race(), object_find_by_type_and_skill(), object_find_by_type_and_slaying(), object_find_by_type_applied(), object_find_by_type_subtype(), object_find_by_type_without_flags(), object_present_in_ob(), object_present_in_ob_by_name(), pick_arrow_target(), print_ext_msg(), re_cmp_step(), read_type(), registerCommand(), save_throw_object(), setPlayerMessage(), CRESettings.setSubWindowType(), show_commands(), stop_using_item(), nlohmann::detail.to_json(), QuestTriggerConnect.trigger(), ArtifactListWrapper.wasModified(), GeneralMessageWrapper.wasModified(), ArchetypeWrapper.wasModified(), TreasureListWrapper.wasModified(), AssetWrapper.wasModified(), QuestWrapper.wasModified(), write_attribute_file(), write_type_file(), and write_type_index().

◆ type_listing_match

is_valid_types_gen.type_listing_match = re.compile(r"^\W*(\w+)\s*\=\s*(\d+)\,?.*$")

Definition at line 30 of file is_valid_types_gen.py.