本文整理汇总了C++中TestAccount::getType方法的典型用法代码示例。如果您正苦于以下问题:C++ TestAccount::getType方法的具体用法?C++ TestAccount::getType怎么用?C++ TestAccount::getType使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TestAccount
的用法示例。
在下文中一共展示了TestAccount::getType方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: test_getType
void Accountintegration::test_getType()
{
m_ac->getType();
}
示例2: main
int main()
{
database_flag = false;
(void)new Domain;
WorldRouter world;
Entity & e = world.m_gameWorld;
ServerRouting server(world, "noruleset", "unittesting",
"1", 1, "2", 2);
CommServer commServer(server);
TestCommClient * tc = new TestCommClient(commServer);
Connection * c = new Connection(*tc, server, "addr", "3", 3);
TestAccount * ac = new TestAccount(c, "user", "password", "4", 4);
Entity * chr;
{
chr = new Entity("5", 5);
chr->m_location.m_loc = &e;
chr->m_location.m_loc->makeContainer();
assert(chr->m_location.m_loc->m_contains != 0);
chr->m_location.m_loc->m_contains->insert(chr);
ac->addCharacter(chr);
chr->destroy();
}
{
chr = new Character("6", 6);
chr->m_location.m_loc = &e;
chr->m_location.m_loc->makeContainer();
assert(chr->m_location.m_loc->m_contains != 0);
chr->m_location.m_loc->m_contains->insert(chr);
ac->addCharacter(chr);
chr->destroy();
}
{
chr = new Character("7", 7);
chr->m_location.m_loc = &e;
chr->m_location.m_loc->makeContainer();
assert(chr->m_location.m_loc->m_contains != 0);
chr->m_location.m_loc->m_contains->insert(chr);
ac->addCharacter(chr);
}
{
Anonymous new_char;
Entity * chr = ac->testAddNewCharacter("thing", new_char,
RootEntity());
assert(chr != 0);
}
ac->getType();
{
MapType emap;
ac->addToMessage(emap);
}
{
RootEntity ent;
ac->addToEntity(ent);
}
{
Create op;
OpVector res;
ac->operation(op, res);
op->setArgs1(Root());
ac->operation(op, res);
Anonymous op_arg;
op->setArgs1(op_arg);
ac->operation(op, res);
op_arg->setParents(std::list<std::string>());
ac->operation(op, res);
op_arg->setParents(std::list<std::string>(1, "game_entity"));
ac->operation(op, res);
op_arg->setName("Bob");
ac->operation(op, res);
}
{
Get op;
OpVector res;
ac->operation(op, res);
op->setArgs1(Root());
ac->operation(op, res);
Anonymous op_arg;
op->setArgs1(op_arg);
ac->operation(op, res);
//.........这里部分代码省略.........