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-calcs.h"
#include "player-history.h"
#include "obj-util.h"
#include "target.h"


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

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

◆ do_cmd_note()

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::full_name, get_string(), history_add(), msg, my_strcpy(), note(), and strnfmt().

◆ do_cmd_suicide()

void do_cmd_suicide ( struct command cmd)

Commit suicide.

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

◆ do_cmd_wizard()

void do_cmd_wizard ( void  )