cyphesis/tests/stubs/server/stubAdmin.h
Erik Ogenvik d88adb64e8 Updated tests.
These tests are truly horrible. You change one thing and then spend
three days just updating stubs in tests. The only possible solution is
to move more and more into stub classes.
2014-09-30 23:15:29 +02:00

86 lines
2 KiB
C++

/*
Copyright (C) 2014 Erik Ogenvik
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., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef STUBADMIN_H_
#define STUBADMIN_H_
Admin::Admin(Connection * conn,
const std::string & username,
const std::string & passwd,
const std::string & id,
long intId) :
Account(conn, username, passwd, id, intId)
{
}
Admin::~Admin()
{
}
const char * Admin::getType() const
{
return "admin";
}
void Admin::addToMessage(MapType & omap) const
{
}
void Admin::addToEntity(const Atlas::Objects::Entity::RootEntity & ent) const
{
}
int Admin::characterError(const Operation & op,
const Root & ent, OpVector & res) const
{
return 0;
}
void Admin::createObject(const std::string & type_str,
const Root & arg,
const Operation & op,
OpVector & res)
{
}
LocatedEntity * Admin::createCharacterEntity(const std::string &,
const Atlas::Objects::Entity::RootEntity &,
const Atlas::Objects::Root &)
{
return 0;
}
void Admin::LogoutOperation(const Operation & op, OpVector & res)
{
}
void Admin::GetOperation(const Operation & op, OpVector & res)
{
}
void Admin::SetOperation(const Operation & op, OpVector & res)
{
}
void Admin::OtherOperation(const Operation & op, OpVector & res)
{
}
#endif /* STUBADMIN_H_ */