bugs: Advantages for incremental library separation by analogy with incremental
[Ale.git] / ui / ui_quiet.h
blob1549eb43576d93e27aaa84edde14fc1babb2af6e
1 // Copyright 2004, 2007 David Hilvert <dhilvert@auricle.dyndns.org>,
2 // <dhilvert@ugcs.caltech.edu>
4 /* This file is part of the Anti-Lamenessing Engine.
6 The Anti-Lamenessing Engine is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
11 The Anti-Lamenessing Engine is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with the Anti-Lamenessing Engine; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef __ui_quiet_h__
22 #define __ui_quiet_h__
24 #include "ui.h"
27 * Quiet user interface.
30 class ui_quiet : public ui_wo {
31 protected:
32 void printf(const char *format, ...) {
35 * Reject messages that aren't loud.
38 if (!strstr(format, "\n***"))
39 return;
41 va_list ap;
42 va_start(ap, format);
43 vfprintf(ui_stream, format, ap);
44 va_end(ap);
47 void update() {
50 public:
51 ui_quiet() {
55 #endif