Crossfire Server, Trunk  R20513
Macros
NDI_xxx message color flags and masks.

The following are the color flags passed to new_draw_info(). More...

Macros

#define NDI_ALL   0x200
 Inform all players of this message. More...
 
#define NDI_ALL_DMS   0x400
 Inform all logged in DMs. More...
 
#define NDI_BLACK   0
 
#define NDI_BLUE   5
 Actually, it is Dodger Blue. More...
 
#define NDI_BROWN   10
 Sienna. More...
 
#define NDI_COLOR_MASK   0xff
 Gives lots of room for expansion - we are using an int anyways, so we have the space to still do all the flags. More...
 
#define NDI_DK_ORANGE   6
 DarkOrange2. More...
 
#define NDI_GOLD   11
 
#define NDI_GREEN   7
 SeaGreen. More...
 
#define NDI_GREY   9
 
#define NDI_LT_GREEN   8
 DarkSeaGreen, which is actually paler than seagreen - also background color. More...
 
#define NDI_MAX_COLOR   12
 Last value in. More...
 
#define NDI_NAVY   2
 
#define NDI_ORANGE   4
 
#define NDI_RED   3
 
#define NDI_TAN   12
 Khaki. More...
 
#define NDI_UNIQUE   0x100
 Print immediately, don't buffer. More...
 
#define NDI_WHITE   1
 

Detailed Description

The following are the color flags passed to new_draw_info().

We also set up some control flags

NDI = New Draw Info

Color specifications - note these match the order in xutil.c.

Note 2: Black, the default color, is 0. Thus, it does not need to be implicitly specified.

Macro Definition Documentation

#define NDI_ALL   0x200
#define NDI_ALL_DMS   0x400

Inform all logged in DMs.

Used in case of errors. Overrides NDI_ALL.

Definition at line 247 of file newclient.h.

Referenced by draw_ext_info(), initConstants(), knowledge_write_player_data(), quest_write_player_data(), save_player(), and swap_map().

#define NDI_BLACK   0
#define NDI_BLUE   5
#define NDI_BROWN   10

Sienna.

Definition at line 233 of file newclient.h.

Referenced by find_key(), initConstants(), and player_attack_door().

#define NDI_COLOR_MASK   0xff

Gives lots of room for expansion - we are using an int anyways, so we have the space to still do all the flags.

Definition at line 238 of file newclient.h.

Referenced by draw_ext_info().

#define NDI_DK_ORANGE   6
#define NDI_GOLD   11

Definition at line 234 of file newclient.h.

Referenced by initConstants().

#define NDI_GREEN   7

SeaGreen.

Definition at line 228 of file newclient.h.

Referenced by display_motd(), initConstants(), runmessage(), send_news(), and send_rules().

#define NDI_GREY   9

Definition at line 232 of file newclient.h.

Referenced by initConstants(), and polymorph_melt().

#define NDI_LT_GREEN   8

DarkSeaGreen, which is actually paler than seagreen - also background color.

Definition at line 229 of file newclient.h.

Referenced by command_nowiz(), do_wizard_dm(), do_wizard_hide(), and initConstants().

#define NDI_MAX_COLOR   12

Last value in.

Definition at line 236 of file newclient.h.

#define NDI_NAVY   2
#define NDI_ORANGE   4
#define NDI_RED   3
#define NDI_TAN   12

Khaki.

Definition at line 235 of file newclient.h.

Referenced by initConstants().

#define NDI_UNIQUE   0x100

Print immediately, don't buffer.

Definition at line 245 of file newclient.h.

Referenced by action_makes_visible(), adj_stealchance(), adjust_sign_msg(), alchemy_failure_effect(), animate_weapon(), apply_builder_floor(), apply_builder_item(), apply_builder_remove(), apply_builder_wall(), apply_builder_window(), apply_by_living(), apply_check_apply_restrictions(), apply_check_item_power(), apply_check_owner(), apply_check_personalized_blessings(), apply_check_race_restrictions(), apply_container(), apply_manual(), apply_map_builder(), apply_savebed(), apply_sign(), apply_special(), apply_update_ranged_skill(), arch_info(), armour_improver_type_apply(), attack_hth(), attack_melee_weapon(), attack_ob_simple(), attempt_do_alchemy(), attempt_jump(), attempt_recipe(), attempt_steal(), basic_emote(), become_follower(), blind_living(), blocked_link(), book_type_apply(), can_pay(), cast_bless(), cast_cause_disease(), cast_change_ability(), cast_change_map_lightlevel(), cast_cone(), cast_consecrate(), cast_create_food(), cast_create_missile(), cast_create_obj(), cast_create_town_portal(), cast_curse(), cast_dust(), cast_heal(), cast_identify(), cast_invisible(), cast_item_curse_or_curse(), cast_light(), cast_raise_dead_spell(), cast_smite_spell(), cast_spell(), cast_word_of_recall(), cf_handle_type_apply(), change_abil(), change_spell(), charge_mana_effect(), check_login(), check_name(), check_pick(), check_sacrifice(), check_spell_expiry(), choose_cult_monster(), clock_type_apply(), command_abil(), command_addexp(), command_afk(), command_apply(), command_applymode(), command_arrest(), command_banish(), command_body(), command_bowmode(), command_brace(), command_cast_spell(), command_cointoss(), command_create(), command_debug(), command_diff(), command_drop(), command_dropall(), command_dump(), command_dumpbelow(), command_empty(), command_examine(), command_fire(), command_follow(), command_forget_spell(), command_free(), command_freeze(), command_goto(), command_gsay(), command_help(), command_insert_into(), command_inventory(), command_invisible(), command_kick2(), command_kill_pets(), command_language(), command_learn_spell_or_prayer(), command_listen(), command_loadplugin(), command_loadtest(), command_lock_item(), command_mark(), command_me(), command_mon_aggr(), command_nowiz(), command_overlay_reset(), command_overlay_save(), command_party(), command_party_rejoin(), command_passwd(), command_patch(), command_peaceful(), command_petmode(), command_pickup(), command_players(), command_possess(), command_purge_quest(), command_purge_quest_definitions(), command_quest(), command_quit(), command_remove(), command_rename_item(), command_reply(), command_reset(), command_resistances(), command_rskill(), command_run(), command_save(), command_search_items(), command_setgod(), command_settings(), command_showpets(), command_shutdown(), command_sound(), command_speed(), command_stack_clear(), command_stack_list(), command_statistics(), command_stats(), command_strings(), command_style_map_info(), command_summon(), command_take(), command_teleport(), command_tell_all(), command_throw(), command_title(), command_toggle_shout(), command_unarmed_skill(), command_unloadplugin(), command_use(), command_usekeys(), command_uskill(), command_version(), command_whereabouts(), command_wimpy(), command_wizcast(), command_wizpass(), confuse_living(), converter_type_move_on(), create_aura(), create_bomb(), Crossfire_Player_Message(), cure_disease(), current_map_info(), current_region_info(), deep_swamp_type_move_on(), deep_swamp_type_process(), dimension_door(), dispel_rune(), display_motd(), display_new_pickup(), display_who_entry(), dm_stack_peek(), dm_stack_pop(), dm_stack_push(), do_forget_spell(), do_hidden_move(), do_learn_spell(), do_skill(), do_skill_attack(), do_tell(), do_throw(), do_turn(), do_wizard_dm(), do_wizard_hide(), dragon_ability_gain(), dragon_eat_flesh(), dragon_level_gain(), drain_specific_stat(), drop(), drop_object(), eat_special_food(), emergency_save(), empty_container(), enter_exit(), enter_fixed_template_map(), enter_map(), enter_player_maplevel(), enter_unique_map(), examine(), examine_monster(), execute_newserver_command(), execute_word_of_recall(), exit_type_apply(), find_best_player_hth_skill(), find_key(), find_or_create_connection_for_map(), find_throw_ob(), fire(), fire_arch_from_position(), fire_bow(), fire_misc_object(), follower_remove_given_items(), food_type_apply(), gate_type_process(), get_dm_object(), get_other_player_from_name(), get_spell_by_name(), god_enchants_weapon(), god_examines_item(), god_examines_priest(), god_gives_present(), god_intervention(), god_removes_curse(), handle_newcs_player(), help_topics(), hide(), hiscore_check(), hiscore_display(), hit_with_one_attacktype(), hole_type_move_on(), i18n_list_languages(), identify_altar_type_move_on(), identify_object_with_skill(), improve_armour(), improve_weapon(), improve_weapon_magic(), improve_weapon_stat(), infect_object(), initConstants(), inscribe_scroll_cmd(), inventory(), jump(), key_change_class(), key_confirm_quit(), key_roll_stat(), kill_object(), kill_player(), kill_player_not_permadeath(), kill_player_permadeath(), knowledge_alchemy_attempt(), knowledge_display(), knowledge_do_attempt(), knowledge_do_display(), knowledge_give(), knowledge_item_can_be_used_alchemy(), knowledge_show(), knowledge_show_monster_detail(), knowledge_write_player_data(), lamp_type_apply(), leave(), lighter_type_apply(), list_players(), lock_item_cmd(), look_at(), magic_wall(), malloc_info(), map_info(), Map_Message(), mark_item_cmd(), meditate(), monster_can_detect_enemy(), monster_can_see_enemy(), monster_do_say(), monster_do_talk_npc(), move_marker(), move_symptom(), new_player_cmd(), paralyze_living(), party_form(), party_help(), party_join(), party_leave(), peacemaker_type_process(), perceive_self(), pets_follow_owner(), pets_move(), pets_move_golem(), pets_summon_golem(), pets_summon_object(), pick_lock(), pick_up(), pick_up_object(), player_attack_door(), player_lvl_adj(), plugins_display_list(), poison_living(), poison_type_apply(), poisoning_type_process(), potion_type_apply(), power_crystal_type_apply(), pray_at_altar(), prayer_failure(), prepare_weapon(), print_los(), print_tod(), probe(), process_players1(), push_ob(), put_object_in_sack(), quest_display(), quest_help(), quest_info(), quest_list(), quest_set_state(), quest_start(), quest_write_player_data(), receive_party_password(), receive_play_again(), receive_player_name(), receive_player_password(), recharge(), recursive_roll(), remove_curse(), remove_depletion(), remove_force(), remove_special_prayers(), resurrect_player(), runmessage(), runnotice(), sack_can_hold(), save_life(), save_player(), save_throw_object(), scroll_failure(), scroll_type_apply(), sell_item(), send_news(), send_rules(), server_check_shutdown(), set_pickup_mode(), shop_describe(), shop_inventory_type_apply(), shop_mat_type_move_on(), shop_pay_unpaid(), show_commands(), show_matching_spells(), show_skills(), singing(), skill_attack(), skill_ident(), skillscroll_type_apply(), slow_living(), spell_consume_items(), spell_failure(), spellbook_type_apply(), spring_trap(), swap_map(), swap_random_stats(), swap_stat(), tailor_god_spell(), time_info(), transmute_item_to_flower(), transport_type_apply(), trap_disarm(), trap_see(), trapdoor_type_move_on(), treasure_type_apply(), trigger_connected(), trigger_type_apply(), unapply_for_ob(), unapply_special(), use_alchemy(), use_oratory(), use_skill(), weapon_improver_type_apply(), worship_forbids_use(), write_mark(), write_note(), write_on_item(), write_rune(), write_scroll(), and wrong_password().

#define NDI_WHITE   1