4 Copyright (c) 2010 Lode Vandevenne
7 This file is part of OOPoker.
9 OOPoker is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
14 OOPoker is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with OOPoker. If not, see <http://www.gnu.org/licenses/>.
23 #include "observer_terminal_quiet.h"
26 #include "io_terminal.h"
29 void ObserverTerminalQuiet::onEvent(const Event
& event
)
31 bool show_event
= false;
33 if(event
.type
== E_NEW_DEAL
) show_event
= true;
34 if(event
.type
== E_JOIN
) show_event
= true;
35 if(event
.type
== E_QUIT
) show_event
= true;
36 if(event
.type
== E_LOG_MESSAGE
) show_event
= true;
37 if(event
.type
== E_DEBUG_MESSAGE
) show_event
= true;
38 if(event
.type
== E_PLAYER_SHOWDOWN
) show_event
= true;
39 if(event
.type
== E_BOAST
) show_event
= true;
40 if(event
.type
== E_FLOP
) show_event
= true;
41 if(event
.type
== E_TURN
) show_event
= true;
42 if(event
.type
== E_RIVER
) show_event
= true;
43 if(event
.type
== E_WIN
) show_event
= true;
44 if(event
.type
== E_TOURNAMENT_RANK
) show_event
= true;
45 if(event
.type
== E_REVEAL_AI
) show_event
= true;
48 if(show_event
) std::cout
<< "> " << eventToStringVerbose(event
) << std::endl
;
50 //sleepMS(options.sleepMS);