本文整理汇总了C++中Hotspot::setCharacterMode方法的典型用法代码示例。如果您正苦于以下问题:C++ Hotspot::setCharacterMode方法的具体用法?C++ Hotspot::setCharacterMode怎么用?C++ Hotspot::setCharacterMode使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Hotspot
的用法示例。
在下文中一共展示了Hotspot::setCharacterMode方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: pauseRatpouch
void Script::pauseRatpouch(uint16 v1, uint16 v2, uint16 v3) {
Resources &res = Resources::getReference();
Hotspot *ratpouch = res.getActiveHotspot(RATPOUCH_ID);
assert(ratpouch);
ratpouch->setCharacterMode(CHARMODE_PAUSED);
ratpouch->setDelayCtr(0x7fff);
}
示例2: makeGoewinFollow
void Script::makeGoewinFollow(uint16 v1, uint16 v2, uint16 v3) {
Resources &res = Resources::getReference();
Hotspot *hotspot = res.getActiveHotspot(GOEWIN_ID);
hotspot->setTickProc(FOLLOWER_TICK_PROC_2);
hotspot->currentActions().clear();
CharacterScheduleEntry *entry = res.charSchedules().getEntry(GOEWIN_CAVE_SUPPORT_ID);
hotspot->currentActions().addFront(DISPATCH_ACTION, entry, ROOMNUM_CAVE);
hotspot->setActions(hotspot->resource()->actions | (1 << (TELL - 1)));
hotspot->setActionCtr(0);
hotspot->setDelayCtr(0);
hotspot->setCharacterMode(CHARMODE_NONE);
}
示例3: normalGoewin
void Script::normalGoewin(uint16 v1, uint16 v2, uint16 v3) {
Resources &res = Resources::getReference();
Hotspot *hotspot = res.getActiveHotspot(GOEWIN_ID);
assert(hotspot);
if (!hotspot->currentActions().isEmpty())
hotspot->currentActions().top().setAction(DISPATCH_ACTION);
hotspot->setCharacterMode(CHARMODE_NONE);
hotspot->setDirection(UP);
hotspot->setTickProc(STANDARD_CHARACTER_TICK_PROC);
// Clear walk to position for Goewin so player must walk up to her when interacting
hotspot->resource()->walkX = 0;
hotspot->resource()->walkY = 0;
}
示例4: fixGoewin
void Script::fixGoewin(uint16 v1, uint16 v2, uint16 v3) {
Resources &res = Resources::getReference();
Hotspot *hotspot = res.getActiveHotspot(GOEWIN_ID);
assert(hotspot);
hotspot->setTickProc(STANDARD_CHARACTER_TICK_PROC);
CharacterScheduleEntry *entry = res.charSchedules().getEntry(GOEWIN_STANDARD_SUPPORT_ID);
assert(entry);
hotspot->currentActions().clear();
hotspot->currentActions().addFront(DISPATCH_ACTION, entry, hotspot->roomNumber());
hotspot->setActions(hotspot->resource()->actions & ~(1 << (TELL - 1)));
hotspot->setActionCtr(0);
hotspot->setDelayCtr(0);
hotspot->setCharacterMode(CHARMODE_NONE);
}
示例5: npcWait
void Script::npcWait(uint16 hotspotId, uint16 v2, uint16 v3) {
Hotspot *hotspot = Resources::getReference().getActiveHotspot(hotspotId);
assert(hotspot);
hotspot->setCharacterMode(CHARMODE_WAIT_FOR_INTERACT);
hotspot->setDelayCtr(130);
}