2010-06-07 17:34:21 +05:30
|
|
|
// Cyphesis Online RPG Server and AI Engine
|
|
|
|
|
// Copyright (C) 2000,2001 Alistair Riddoch
|
|
|
|
|
//
|
|
|
|
|
// This program is free software; you can redistribute it and/or modify
|
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
|
// the Free Software Foundation; either version 2 of the License, or
|
|
|
|
|
// (at your option) any later version.
|
|
|
|
|
//
|
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
|
//
|
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
|
// along with this program; if not, write to the Free Software Foundation,
|
|
|
|
|
// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
|
|
|
|
|
|
|
2011-04-20 23:23:19 +01:00
|
|
|
#ifndef SERVER_SERVER_ACCOUNT_H
|
|
|
|
|
#define SERVER_SERVER_ACCOUNT_H
|
2010-06-07 17:34:21 +05:30
|
|
|
|
|
|
|
|
#include "Account.h"
|
|
|
|
|
|
2010-08-02 23:16:05 +05:30
|
|
|
#include "common/Router.h"
|
|
|
|
|
|
2010-06-07 17:34:21 +05:30
|
|
|
#include <sigc++/connection.h>
|
|
|
|
|
|
|
|
|
|
/// \brief This is a class for handling users with administrative priveleges
|
2010-06-07 17:46:12 +05:30
|
|
|
class ServerAccount : public Account {
|
2010-06-07 17:34:21 +05:30
|
|
|
protected:
|
|
|
|
|
virtual int characterError(const Operation & op,
|
2010-12-03 21:57:39 +00:00
|
|
|
const Atlas::Objects::Root & ent,
|
2010-06-07 17:34:21 +05:30
|
|
|
OpVector & res) const;
|
|
|
|
|
|
2013-01-17 10:17:07 +00:00
|
|
|
LocatedEntity * addNewEntity(const std::string &,
|
|
|
|
|
const Atlas::Objects::Entity::RootEntity &,
|
|
|
|
|
const Atlas::Objects::Root &);
|
2010-08-17 03:51:05 +05:30
|
|
|
|
2010-12-06 00:02:21 +00:00
|
|
|
virtual void createObject(const std::string &,
|
|
|
|
|
const Atlas::Objects::Root &,
|
|
|
|
|
const Operation &,
|
|
|
|
|
OpVector &);
|
2010-06-07 17:34:21 +05:30
|
|
|
public:
|
2010-06-07 17:46:12 +05:30
|
|
|
ServerAccount(Connection * conn, const std::string & username,
|
2010-08-19 01:56:29 +05:30
|
|
|
const std::string & passwd,
|
|
|
|
|
const std::string & id, long intId);
|
2010-06-07 17:46:12 +05:30
|
|
|
virtual ~ServerAccount();
|
2010-06-07 17:34:21 +05:30
|
|
|
|
|
|
|
|
virtual const char * getType() const;
|
2012-09-14 00:40:14 +01:00
|
|
|
|
|
|
|
|
friend class ServerAccounttest;
|
2010-06-07 17:34:21 +05:30
|
|
|
};
|
|
|
|
|
|
2011-04-20 23:23:19 +01:00
|
|
|
#endif // SERVER_SERVER_ACCOUNT_H
|