mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 10:52:46 +00:00
Alright, this _TEMP_CONVERT_ stuff was a stupid idea
This commit is contained in:
@ -104,10 +104,6 @@ public:
|
||||
void SetChannelName(const plString &name);
|
||||
plString GetChannelName();
|
||||
|
||||
// TEMP plString REVISIT
|
||||
// Because I'm TOO LAZY to keep converting all these calls to SetChannelName
|
||||
void SetChannelName(const char *name) { SetChannelName(_TEMP_CONVERT_FROM_LITERAL(name)); }
|
||||
|
||||
/** Optionally suppress the action of this applicator.
|
||||
The applicator can still be forced to apply using the force
|
||||
paramater of the Apply function. */
|
||||
|
@ -631,7 +631,7 @@ bool plAGMasterMod::MsgReceive(plMessage* msg)
|
||||
plString targetName = cmdMsg->GetAnimName();
|
||||
|
||||
if (targetName.IsNull())
|
||||
targetName = _TEMP_CONVERT_FROM_LITERAL(ENTIRE_ANIMATION_NAME);
|
||||
targetName = ENTIRE_ANIMATION_NAME;
|
||||
|
||||
plAGAnimInstance *inst = FindAnimInstance(targetName);
|
||||
if (inst != nil)
|
||||
|
@ -277,7 +277,7 @@ plAGAnimInstance * plAnimStage::Attach(plArmatureMod *armature, plArmatureBrain
|
||||
if(fAnimInstance)
|
||||
{
|
||||
fAnimInstance->Stop(); // we'll be setting the time directly.
|
||||
fAnimatedHandle = (fAnimInstance->GetAnimation()->GetChannel(_TEMP_CONVERT_FROM_LITERAL("Handle")) != nil);
|
||||
fAnimatedHandle = (fAnimInstance->GetAnimation()->GetChannel("Handle") != nil);
|
||||
fAttached = true;
|
||||
// this is too early to send the enter notify. we're attached, but we may not
|
||||
// have faded in yet.
|
||||
|
@ -663,7 +663,7 @@ void plArmatureMod::IInitDefaults()
|
||||
fDontPanicLink = false;
|
||||
fBodyAgeName = "GlobalAvatars";
|
||||
fBodyFootstepSoundPage = "Audio";
|
||||
fAnimationPrefix = _TEMP_CONVERT_FROM_LITERAL("Male");
|
||||
fAnimationPrefix = "Male";
|
||||
fUserStr = "";
|
||||
}
|
||||
|
||||
@ -1034,7 +1034,7 @@ void plArmatureMod::PanicLink(bool playLinkOutAnim /* = true */)
|
||||
|
||||
plString animName = MakeAnimationName("FallingLinkOut");
|
||||
task->SetAnimName(animName);
|
||||
task->SetMarkerName(_TEMP_CONVERT_FROM_LITERAL("touch"));
|
||||
task->SetMarkerName("touch");
|
||||
|
||||
plAvTaskMsg *taskMsg = new plAvTaskMsg(GetKey(), GetKey(), task);
|
||||
taskMsg->Send();
|
||||
@ -1057,7 +1057,7 @@ void plArmatureMod::PersonalLink()
|
||||
plAvOneShotLinkTask *task = new plAvOneShotLinkTask;
|
||||
plString animName = MakeAnimationName("PersonalLink");
|
||||
task->SetAnimName(animName);
|
||||
task->SetMarkerName(_TEMP_CONVERT_FROM_LITERAL("touch"));
|
||||
task->SetMarkerName("touch");
|
||||
|
||||
plAvTaskMsg *taskMsg = new plAvTaskMsg(GetKey(), GetKey(), task);
|
||||
taskMsg->SetBCastFlag(plMessage::kNetPropagate);
|
||||
@ -1781,7 +1781,7 @@ void plArmatureMod::Read(hsStream * stream, hsResMgr *mgr)
|
||||
if (gLoc.IsValid())
|
||||
{
|
||||
const plUoid &myUoid = GetKey()->GetUoid();
|
||||
plUoid SOUoid(gLoc, plSceneObject::Index(), _TEMP_CONVERT_FROM_LITERAL("FootstepSoundObject"));
|
||||
plUoid SOUoid(gLoc, plSceneObject::Index(), "FootstepSoundObject");
|
||||
fFootSoundSOKey = mgr->FindKey(SOUoid);
|
||||
if (fFootSoundSOKey)
|
||||
{
|
||||
@ -1791,7 +1791,7 @@ void plArmatureMod::Read(hsStream * stream, hsResMgr *mgr)
|
||||
}
|
||||
|
||||
// Add the effect to our effects manager
|
||||
plUoid effectUoid(gLoc, plArmatureEffectFootSound::Index(), _TEMP_CONVERT_FROM_LITERAL("FootstepSounds") );
|
||||
plUoid effectUoid(gLoc, plArmatureEffectFootSound::Index(), "FootstepSounds");
|
||||
plKey effectKey = mgr->FindKey(effectUoid);
|
||||
if (effectKey)
|
||||
{
|
||||
@ -1802,7 +1802,7 @@ void plArmatureMod::Read(hsStream * stream, hsResMgr *mgr)
|
||||
mgr->AddViaNotify(effectKey, new plGenRefMsg(effectMgrKey, plRefMsg::kOnCreate, -1, -1), plRefFlags::kActiveRef);
|
||||
|
||||
// Get the linking sound
|
||||
plUoid LinkUoid(gLoc, plSceneObject::Index(), _TEMP_CONVERT_FROM_LITERAL("LinkSoundSource"));
|
||||
plUoid LinkUoid(gLoc, plSceneObject::Index(), "LinkSoundSource");
|
||||
fLinkSoundSOKey = mgr->FindKey(LinkUoid);
|
||||
if (fLinkSoundSOKey)
|
||||
{
|
||||
@ -1896,7 +1896,7 @@ void plArmatureMod::ICustomizeApplicator()
|
||||
{
|
||||
plArmatureModBase::ICustomizeApplicator();
|
||||
|
||||
const plAGModifier *agMod = GetChannelMod(_TEMP_CONVERT_FROM_LITERAL("Bone_Root"), true);
|
||||
const plAGModifier *agMod = GetChannelMod("Bone_Root", true);
|
||||
if (agMod)
|
||||
{
|
||||
// are there any applicators that manipulate the transform?
|
||||
@ -2379,7 +2379,7 @@ bool plArmatureMod::FindMatchingGenericBrain(const char *names[], int count)
|
||||
|
||||
plString plArmatureMod::MakeAnimationName(const char *baseName) const
|
||||
{
|
||||
return fAnimationPrefix + _TEMP_CONVERT_FROM_LITERAL(baseName);
|
||||
return fAnimationPrefix + baseName;
|
||||
}
|
||||
|
||||
plString plArmatureMod::GetRootName()
|
||||
|
@ -714,7 +714,7 @@ void plAvBrainClimb::ICalcProbeLengths()
|
||||
hsAssert(up, "Couldn't find ClimbUp animation.");
|
||||
if(up)
|
||||
{
|
||||
GetStartToEndTransform(up, &upMove, nil, _TEMP_CONVERT_FROM_LITERAL("Handle"));
|
||||
GetStartToEndTransform(up, &upMove, nil, "Handle");
|
||||
fVerticalProbeLength = upMove.GetTranslate().fZ;
|
||||
} else
|
||||
fVerticalProbeLength = 4.0f; // guess
|
||||
@ -722,7 +722,7 @@ void plAvBrainClimb::ICalcProbeLengths()
|
||||
hsAssert(left, "Couldn't find ClimbLeft animation.");
|
||||
if(left)
|
||||
{
|
||||
GetStartToEndTransform(left, &leftMove, nil, _TEMP_CONVERT_FROM_LITERAL("Handle"));
|
||||
GetStartToEndTransform(left, &leftMove, nil, "Handle");
|
||||
fHorizontalProbeLength = leftMove.GetTranslate().fX;
|
||||
} else
|
||||
fHorizontalProbeLength = 3.0f; // guess
|
||||
|
@ -300,7 +300,7 @@ std::string plAvBrainCritter::BehaviorName(int behavior) const
|
||||
plString plAvBrainCritter::AnimationName(int behavior) const
|
||||
{
|
||||
if ((behavior >= fBehaviors.Count()) || (behavior < 0))
|
||||
return _TEMP_CONVERT_FROM_LITERAL("");
|
||||
return plString();
|
||||
return ((CritterBehavior*)fBehaviors[behavior])->AnimName();
|
||||
}
|
||||
|
||||
|
@ -309,7 +309,7 @@ void plAvBrainHuman::IInitBoneMap()
|
||||
for(int i = 0; i < numTuples; i++)
|
||||
{
|
||||
HumanBoneID id = tupleMap[i].fID;
|
||||
plString name = _TEMP_CONVERT_FROM_LITERAL(tupleMap[i].fName);
|
||||
plString name = tupleMap[i].fName;
|
||||
|
||||
const plSceneObject * bone = this->fAvMod->FindBone(name);
|
||||
if( bone )
|
||||
|
@ -535,7 +535,7 @@ bool plAvTaskSeek::IUpdateObjective(plArmatureMod *avatar)
|
||||
plAGAnim *anim = avatar->FindCustomAnim(fAnimName);
|
||||
// don't need to do this every frame; the animation doesn't change.
|
||||
// *** cache the adjustment;
|
||||
GetStartToEndTransform(anim, nil, &adjustment, _TEMP_CONVERT_FROM_LITERAL("Handle")); // actually getting end-to-start
|
||||
GetStartToEndTransform(anim, nil, &adjustment, "Handle"); // actually getting end-to-start
|
||||
// ... but we do still need to multiply by the (potentially changed) target
|
||||
targL2W = targL2W * adjustment;
|
||||
}
|
||||
|
@ -199,9 +199,9 @@ plKey plAvatarMgr::LoadAvatar(const char *name, const char *accountName, bool is
|
||||
const plLocation& loc = (globalLoc.IsValid() ? globalLoc : custLoc.IsValid() ? custLoc : maleLoc);
|
||||
#endif
|
||||
|
||||
plString theName = _TEMP_CONVERT_FROM_LITERAL(name);
|
||||
plString theName = name;
|
||||
if ( loc == maleLoc )
|
||||
theName = _TEMP_CONVERT_FROM_LITERAL("Male");
|
||||
theName = "Male";
|
||||
|
||||
if (loc.IsValid())
|
||||
{
|
||||
@ -1012,7 +1012,7 @@ void plAvatarMgr::OfferLinkingBook(plKey hostKey, plKey guestKey, plMessage *lin
|
||||
|
||||
brainG->AddStage(guestAccept);
|
||||
brainG->AddStage(guestAcceptIdle);
|
||||
plCoopCoordinator *coord = new plCoopCoordinator(hostKey, guestKey, brainH, brainG, _TEMP_CONVERT_FROM_LITERAL("Convergence"), 1, 1, linkMsg, true);
|
||||
plCoopCoordinator *coord = new plCoopCoordinator(hostKey, guestKey, brainH, brainG, "Convergence", 1, 1, linkMsg, true);
|
||||
|
||||
|
||||
plAvCoopMsg *coMg = new plAvCoopMsg(hostKey, coord);
|
||||
|
@ -249,7 +249,7 @@ bool plAvSeekTask::Start(plArmatureMod *avatar, plArmatureBrain *brain, double t
|
||||
{
|
||||
hsMatrix44 adjustment;
|
||||
plAGAnim *anim = avatar->FindCustomAnim(fAnimName);
|
||||
GetStartToEndTransform(anim, nil, &adjustment, _TEMP_CONVERT_FROM_LITERAL("Handle")); // actually getting end-to-start
|
||||
GetStartToEndTransform(anim, nil, &adjustment, "Handle"); // actually getting end-to-start
|
||||
targetL2W = targetL2W * adjustment;
|
||||
}
|
||||
break;
|
||||
@ -624,7 +624,7 @@ bool plAvOneShotTask::Start(plArmatureMod *avatar, plArmatureBrain *brain, doubl
|
||||
plgDispatch::MsgSend( pMsg ); // whoosh... off it goes
|
||||
}
|
||||
|
||||
fMoveHandle = (fAnimInstance->GetAnimation()->GetChannel(_TEMP_CONVERT_FROM_LITERAL("Handle")) != nil);
|
||||
fMoveHandle = (fAnimInstance->GetAnimation()->GetChannel("Handle") != nil);
|
||||
if(fMoveHandle)
|
||||
{
|
||||
plMatrixDifferenceApp *differ = avatar->GetRootAnimator();
|
||||
|
@ -279,7 +279,7 @@ bool IIsClosestAnim(const char *animName, hsMatrix44 &sitGoal, float &closestDis
|
||||
// The first step is to get the transform from the end to the beginning of the
|
||||
// animation. That's what this next line is doing. It's a bit unintuitive
|
||||
// until you look at the parameter definitions.
|
||||
GetStartToEndTransform(anim, nil, &animEndToStart, _TEMP_CONVERT_FROM_LITERAL("Handle"));
|
||||
GetStartToEndTransform(anim, nil, &animEndToStart, "Handle");
|
||||
hsMatrix44 candidateGoal = sitGoal * animEndToStart;
|
||||
hsPoint3 distP = candidateGoal.GetTranslate() - curPosition;
|
||||
hsVector3 distV(distP.fX, distP.fY, distP.fZ);
|
||||
|
Reference in New Issue
Block a user