Logo
~Sockets~
~Examples~
~Contact~

Save Class Reference
[Commands]

Command: update char in db. More...

#include <Save.h>

Inheritance diagram for Save:

Inheritance graph
[legend]
Collaboration diagram for Save:

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

Detailed Description

Command: update char in db.

Definition at line 28 of file Save.h.


Constructor & Destructor Documentation

Save::Save (  )  [inline]

Definition at line 31 of file Save.h.

00031 : Command("save") {}


Member Function Documentation

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

Execute command.

Implements Command.

Definition at line 27 of file Save.cpp.

References Player::Save().

00028 {
00029         Player pl(from -> GetDatabase(), from -> GetAccountName());
00030         pl.Save();
00031         from -> Send("Ok.\n");
00032         from -> SetPrompt();
00033 }

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

Get command category.

Implements Command.

Definition at line 35 of file Save.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