本文整理汇总了C++中CreatureObject::getPlanetCRC方法的典型用法代码示例。如果您正苦于以下问题:C++ CreatureObject::getPlanetCRC方法的具体用法?C++ CreatureObject::getPlanetCRC怎么用?C++ CreatureObject::getPlanetCRC使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CreatureObject
的用法示例。
在下文中一共展示了CreatureObject::getPlanetCRC方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: removeMember
void GroupObjectImplementation::removeMember(SceneObject* member) {
ManagedReference<SceneObject*> obj = member;
for (int i = 0; i < groupMembers.size(); i++) {
SceneObject* scno = groupMembers.get(i).get().get();
if (scno == member) {
GroupObjectDeltaMessage6* grp = new GroupObjectDeltaMessage6(_this.get());
grp->startUpdate(1);
groupMembers.remove(i, grp);
grp->close();
broadcastMessage(grp);
}
}
if (member->isPlayerCreature()) {
// Remove member's pets
CreatureObject* playerCreature = cast<CreatureObject*>(member);
RemovePetsFromGroupTask* task = new RemovePetsFromGroupTask(playerCreature, _this.get());
task->execute();
//Close any open Group SUIs.
ManagedReference<PlayerObject*> ghost = playerCreature->getPlayerObject();
if (ghost != NULL) {
ghost->closeSuiWindowType(SuiWindowType::GROUP_LOOT_RULE);
ghost->closeSuiWindowType(SuiWindowType::GROUP_LOOT_CHANGED);
ghost->closeSuiWindowType(SuiWindowType::GROUP_LOOT_PICK_LOOTER);
}
//Reset Master Looter if needed.
if (getMasterLooterID() == playerCreature->getObjectID()) {
ManagedReference<CreatureObject*> groupLeader = (getLeader()).castTo<CreatureObject*>();
GroupManager::instance()->changeMasterLooter(_this.get(), groupLeader, false);
}
if (hasSquadLeader()) {
removeGroupModifiers(playerCreature);
}
if (playerCreature->getPlayerObject() != NULL) {
PlayerObject* ghost = playerCreature->getPlayerObject();
ghost->removeWaypointBySpecialType(WaypointObject::SPECIALTYPE_NEARESTMISSIONFORGROUP);
}
scheduleUpdateNearestMissionForGroup(playerCreature->getPlanetCRC());
}
calcGroupLevel();
}
示例2: updateMissionLocation
void MissionObjectImplementation::updateMissionLocation() {
if (getMissionObjective() == NULL || getMissionObjective()->getPlayerOwner() == NULL) {
return;
}
CreatureObject* playerCreature = getMissionObjective()->getPlayerOwner().castTo<CreatureObject*>();
ManagedReference<WaypointObject* > waypointToMission = this->waypointToMission;
if (playerCreature != NULL && waypointToMission != NULL) {
MissionObjectDeltaMessage3* dmiso3 = new MissionObjectDeltaMessage3(_this.get());
dmiso3->updateWaypoint(waypointToMission);
dmiso3->close();
playerCreature->sendMessage(dmiso3);
if (playerCreature->isGrouped() && playerCreature->getGroup() != NULL) {
GroupObject* group = playerCreature->getGroup();
group->scheduleUpdateNearestMissionForGroup(playerCreature->getPlanetCRC());
}
}
}