#include <magic8ball.h>
Public Member Functions | |
Magic8Ball (BotKernel *) | |
Constructor. | |
string | getRandomAnswer () |
Return a random answer. | |
Private Attributes | |
string | answers [20] |
magic answers |
Plugin simulating magic 8 ball game see http://en.wikipedia.org/wiki/Magic_8-Ball
Definition at line 42 of file magic8ball.h.
Magic8Ball::Magic8Ball | ( | BotKernel * | b | ) |
Constructor.
Constructor
Definition at line 34 of file magic8ball.cpp.
References answers, Plugin::author, Plugin::bindFunction(), Plugin::description, IN_COMMAND_HANDLER, Plugin::name, and Plugin::version.
string Magic8Ball::getRandomAnswer | ( | ) |
Return a random answer.
Get a random answer
Definition at line 68 of file magic8ball.cpp.
References answers, and Tools::random().
Referenced by ball().
string Magic8Ball::answers[20] [private] |
magic answers
Definition at line 46 of file magic8ball.h.
Referenced by getRandomAnswer(), and Magic8Ball().