本文整理汇总了C++中AddToUpdateQueueOf函数的典型用法代码示例。如果您正苦于以下问题:C++ AddToUpdateQueueOf函数的具体用法?C++ AddToUpdateQueueOf怎么用?C++ AddToUpdateQueueOf使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了AddToUpdateQueueOf函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: RemoveFromUpdateQueueOf
void Item::SetState(ItemUpdateState state, Player *forplayer)
{
if (uState == ITEM_NEW && state == ITEM_REMOVED)
{
// pretend the item never existed
RemoveFromUpdateQueueOf(forplayer);
delete this;
return;
}
if (state != ITEM_UNCHANGED)
{
// new items must stay in new state until saved
if (uState != ITEM_NEW)
uState = state;
AddToUpdateQueueOf(forplayer);
}
else
{
// unset in queue
// the item must be removed from the queue manually
uQueuePos = -1;
uState = ITEM_UNCHANGED;
}
}
开发者ID:Bootz,项目名称:SF1,代码行数:25,代码来源:Item.cpp
示例2: RemoveFromUpdateQueueOf
void Item::SetState(ItemUpdateState state, Player* forPlayer)
{
if (m_state == ITEM_NEW && state == ITEM_REMOVED)
{
// pretend the item never existed
if (forPlayer || GetOwnerGuid())
RemoveFromUpdateQueueOf(forPlayer);
if (forPlayer)
forPlayer->RemoveItemWithTimeCheck(GetGUIDLow());
delete this;
return;
}
if (state != ITEM_UNCHANGED)
{
// new items must stay in new state until saved
if (m_state != ITEM_NEW)
m_state = state;
if (forPlayer || GetOwnerGuid())
AddToUpdateQueueOf(forPlayer);
}
else
{
// unset in queue
// the item must be removed from the queue manually
m_queuePos = -1;
m_state = ITEM_UNCHANGED;
}
}
开发者ID:Splash,项目名称:mangos,代码行数:32,代码来源:Item.cpp
示例3: RemoveFromUpdateQueueOf
void Item::SetState(ItemUpdateState state, Player* forplayer)
{
if (uState == ITEM_NEW && state == ITEM_REMOVED)
{
RemoveFromUpdateQueueOf(forplayer);
forplayer->DeleteRefundReference(GetGUIDLow());
delete this;
return;
}
if (state != ITEM_UNCHANGED)
{
if (uState != ITEM_NEW)
uState = state;
AddToUpdateQueueOf(forplayer);
}
else
{
uQueuePos = -1;
uState = ITEM_UNCHANGED;
}
}
开发者ID:boom8866,项目名称:new,代码行数:23,代码来源:Item.cpp
注:本文中的AddToUpdateQueueOf函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论