本文整理汇总了C++中TestAccount::addNewCharacter方法的典型用法代码示例。如果您正苦于以下问题:C++ TestAccount::addNewCharacter方法的具体用法?C++ TestAccount::addNewCharacter怎么用?C++ TestAccount::addNewCharacter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TestAccount
的用法示例。
在下文中一共展示了TestAccount::addNewCharacter方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: test_addNewCharacter
void Accountintegration::test_addNewCharacter()
{
Anonymous new_char;
LocatedEntity * chr = m_ac->addNewCharacter("thing", new_char,
RootEntity());
assert(chr != 0);
std::cout << "Test 1" << std::endl << std::flush;
}
示例2: test_LookOperation
void Accountintegration::test_LookOperation()
{
Anonymous new_char;
LocatedEntity * chr = m_ac->addNewCharacter("thing", new_char,
RootEntity());
Anonymous op_arg;
op_arg->setId("1");
op_arg->setId(chr->getId());
Look op;
op->setArgs1(op_arg);
OpVector res;
m_ac->operation(op, res);
// FIXME This doesn't test a lot
}
示例3: test_SetOperation
void Accountintegration::test_SetOperation()
{
Anonymous new_char;
LocatedEntity * chr = m_ac->addNewCharacter("thing", new_char,
RootEntity());
BBox newBox(WFMath::Point<3>(-0.5, -0.5, 0.0),
WFMath::Point<3>(-0.5, -0.5, 2.0));
chr->m_location.setBBox(newBox);
Anonymous op_arg;
op_arg->setId(chr->getId());
op_arg->setAttr("guise", "foo");
op_arg->setAttr("height", 3.0);
op_arg->setAttr("tasks", ListType());
Set op;
op->setArgs1(op_arg);
OpVector res;
m_ac->operation(op, res);
// FIXME Ensure character has been modified
}