Magic8Ball Class Reference

magic 8 ball game More...

#include <magic8ball.h>

Inheritance diagram for Magic8Ball:

Plugin

List of all members.

Public Member Functions

 Magic8Ball (BotKernel *)
 Constructor.
string getRandomAnswer ()
 Return a random answer.

Private Attributes

string answers [20]
 magic answers


Detailed Description

magic 8 ball game

Plugin simulating magic 8 ball game see http://en.wikipedia.org/wiki/Magic_8-Ball

Definition at line 42 of file magic8ball.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

string Magic8Ball::getRandomAnswer (  ) 

Return a random answer.

Get a random answer

Returns:
the answer

Definition at line 68 of file magic8ball.cpp.

References answers, and Tools::random().

Referenced by ball().


Member Data Documentation

string Magic8Ball::answers[20] [private]

magic answers

Definition at line 46 of file magic8ball.h.

Referenced by getRandomAnswer(), and Magic8Ball().


The documentation for this class was generated from the following files:

Generated on Sun Aug 16 15:28:49 2009 for trustyRC by  doxygen 1.5.8