cmd-misc.c File Reference

Deal with miscellaneous commands. More...

#include "angband.h"
#include "buildid.h"
#include "cave.h"
#include "cmd-core.h"
#include "cmds.h"
#include "game-input.h"
#include "init.h"
#include "mon-lore.h"
#include "mon-util.h"
#include "player-history.h"
#include "obj-util.h"
#include "target.h"


void do_cmd_wizard (void)
 Toggle wizard mode.
void do_cmd_suicide (struct command *cmd)
 Commit suicide.
void do_cmd_version (void)
 Mention the current version.
void do_cmd_note (void)
 Record the player's thoughts as a note.

Detailed Description

Deal with miscellaneous commands.

Copyright (c) 2010 Andi Sidwell

This work is free software; you can redistribute it and/or modify it under the terms of either:

a) the GNU General Public License as published by the Free Software Foundation, version 2, or

b) the "Angband licence": This software may be copied and distributed for educational, research, and not for profit purposes provided that this copyright and statement are included in all such copies. Other copyrights may also apply.

Function Documentation

void do_cmd_note ( void  )

Record the player's thoughts as a note.

This both displays the note back to the player and adds it to the game log. Two fancy note types are supported: notes beginning with "/say" will be written as 'Frodo says: "____"', and notes beginning with "/me" will be written as 'Frodo ____'.

References player_other::full_name, get_string(), history_add(), msg, my_strcpy(), note(), op_ptr, and strnfmt().

void do_cmd_suicide ( struct command cmd)

Commit suicide.

References player::died_from, player::is_dead, my_strcpy(), and TRUE.

void do_cmd_version ( void  )

Mention the current version.

References buildver, and msg.

void do_cmd_wizard ( void  )