Logo
~Sockets~
~Examples~
~Contact~

Quit Class Reference
[Commands]

Command: bye bye. More...

#include <Quit.h>

Inheritance diagram for Quit:

Inheritance graph
[legend]
Collaboration diagram for Quit:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Quit ()
void Execute (InSocket *, const std::string &params, Parse &)
 Execute command.
std::string Category ()
 Get command category.

Detailed Description

Command: bye bye.

Definition at line 28 of file Quit.h.


Constructor & Destructor Documentation

Quit::Quit (  )  [inline]

Definition at line 31 of file Quit.h.

00031 : Command("quit") {}


Member Function Documentation

void Quit::Execute ( InSocket ,
const std::string &  arg,
Parse &   
) [virtual]

Execute command.

Implements Command.

Definition at line 25 of file Quit.cpp.

References Player::GetDisplayName().

00026 {
00027         Player pl(from -> GetDatabase(),from -> GetAccountName());
00028         from -> Send("Thanks for visiting\n");
00029         from -> GlobalEvent(pl.GetDisplayName() + " exits.");
00030         from -> SetCloseAndDelete();
00031 }

std::string Quit::Category (  )  [inline, virtual]

Get command category.

Implements Command.

Definition at line 35 of file Quit.h.

00035 { return "General"; }


The documentation for this class was generated from the following files:
Page, code, and content Copyright (C) 2006 by Anders Hedström
Generated on Mon Aug 29 20:21:47 2005 for C++ Sockets by  doxygen 1.4.4