duncan
Mom and Dad were wrong!
Public Member Functions
bot::Bot Class Reference

#include <bot.h>

Collaboration diagram for bot::Bot:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Bot (const std::string &, const std::string &)
 ~Bot ()
void message (const std::string &)
bool update ()

Detailed Description

Create a bot which plays duncan automatically.

Author:
Harry Slatyer

see LICENSE


Constructor & Destructor Documentation

Bot::Bot ( const std::string &  name,
const std::string &  ip 
)

Create a bot with a given name, and connect to a given server.

Parameters:
namename of bot
ipip of server
Bot::~Bot ( )

Disconnect from the server.


Member Function Documentation

void Bot::message ( const std::string &  msg)

Handle a message entered at the terminal.

Parameters:
msgmessage
bool Bot::update ( )

Update the bot.

Returns:
whether or not the bot should continue to run

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations