本文整理汇总了C++中ObjectList::first方法的典型用法代码示例。如果您正苦于以下问题:C++ ObjectList::first方法的具体用法?C++ ObjectList::first怎么用?C++ ObjectList::first使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ObjectList
的用法示例。
在下文中一共展示了ObjectList::first方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: initPlugins
void Kolf::initPlugins()
{
//kdDebug(12007) << "initPlugins" << endl;
if (game)
game->pause();
obj->setAutoDelete(true);
obj->clear();
plugins.setAutoDelete(false);
plugins.clear();
// add prefab objects
obj->append(new SlopeObj());
obj->append(new PuddleObj());
obj->append(new WallObj());
obj->append(new CupObj());
obj->append(new SandObj());
obj->append(new WindmillObj());
obj->append(new BlackHoleObj());
obj->append(new FloaterObj());
obj->append(new BridgeObj());
obj->append(new SignObj());
obj->append(new BumperObj());
ObjectList *other = PluginLoader::loadAll();
Object *object = 0;
for (object = other->first(); object; object = other->next())
{
obj->append(object);
plugins.append(object);
}
if (game)
{
game->setObjects(obj);
game->unPause();
}
//kdDebug(12007) << "end of initPlugins" << endl;
}