mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 11:19:10 +00:00
Obliterate hsBool
This commit is contained in:
@ -523,7 +523,7 @@ void pfBoid::ISetupToken(pfProximityDatabase &pd)
|
||||
fProximityToken = pd.MakeToken(this);
|
||||
}
|
||||
|
||||
hsBool pfBoid::IInBoidNeighborhood(const pfVehicle &other, const float minDistance, const float maxDistance, const float cosMaxAngle)
|
||||
bool pfBoid::IInBoidNeighborhood(const pfVehicle &other, const float minDistance, const float maxDistance, const float cosMaxAngle)
|
||||
{
|
||||
if (&other == this) // abort if we're looking at ourselves
|
||||
return false;
|
||||
@ -929,7 +929,7 @@ void pfObjectFlocker::SetNumBoids(uint8_t val)
|
||||
fNumBoids = val;
|
||||
}
|
||||
|
||||
hsBool pfObjectFlocker::MsgReceive(plMessage* msg)
|
||||
bool pfObjectFlocker::MsgReceive(plMessage* msg)
|
||||
{
|
||||
plInitialAgeStateLoadedMsg* loadMsg = plInitialAgeStateLoadedMsg::ConvertNoRef(msg);
|
||||
if (loadMsg)
|
||||
@ -979,7 +979,7 @@ hsBool pfObjectFlocker::MsgReceive(plMessage* msg)
|
||||
return plSingleModifier::MsgReceive(msg);
|
||||
}
|
||||
|
||||
hsBool pfObjectFlocker::IEval(double secs, float del, uint32_t dirty)
|
||||
bool pfObjectFlocker::IEval(double secs, float del, uint32_t dirty)
|
||||
{
|
||||
fFlock.Update(fTarget, del);
|
||||
|
||||
|
@ -255,7 +255,7 @@ private:
|
||||
hsPoint3 fCurPos;
|
||||
hsVector3 fForward;
|
||||
float fSpeed; // in meters/sec
|
||||
hsBool fHasLastPos; // does the last position make sense?
|
||||
bool fHasLastPos; // does the last position make sense?
|
||||
public:
|
||||
pfBoidGoal();
|
||||
~pfBoidGoal() {}
|
||||
@ -301,7 +301,7 @@ private:
|
||||
void ISetupToken(pfProximityDatabase &pd);
|
||||
|
||||
// Are we in the neighborhood of another boid?
|
||||
hsBool IInBoidNeighborhood(const pfVehicle &other, const float minDistance, const float maxDistance, const float cosMaxAngle);
|
||||
bool IInBoidNeighborhood(const pfVehicle &other, const float minDistance, const float maxDistance, const float cosMaxAngle);
|
||||
// Wander steering
|
||||
hsVector3 ISteerForWander(float timeDelta);
|
||||
// Seek the target point
|
||||
@ -403,7 +403,7 @@ public:
|
||||
GETINTERFACE_ANY( pfObjectFlocker, plSingleModifier );
|
||||
|
||||
virtual void SetTarget(plSceneObject* so);
|
||||
virtual hsBool MsgReceive(plMessage* msg);
|
||||
virtual bool MsgReceive(plMessage* msg);
|
||||
|
||||
virtual void Read(hsStream* stream, hsResMgr* mgr);
|
||||
virtual void Write(hsStream* stream, hsResMgr* mgr);
|
||||
@ -433,10 +433,10 @@ public:
|
||||
float MinSpeed() const {return fFlock.MinSpeed();}
|
||||
void SetMinSpeed(float minSpeed) {fFlock.SetMinSpeed(minSpeed);}
|
||||
|
||||
hsBool RandomizeAnimStart() const {return fRandomizeAnimationStart;}
|
||||
void SetRandomizeAnimStart(hsBool val) {fRandomizeAnimationStart = val;}
|
||||
hsBool UseTargetRotation() const {return fUseTargetRotation;}
|
||||
void SetUseTargetRotation(hsBool val) {fUseTargetRotation = val;}
|
||||
bool RandomizeAnimStart() const {return fRandomizeAnimationStart;}
|
||||
void SetRandomizeAnimStart(bool val) {fRandomizeAnimationStart = val;}
|
||||
bool UseTargetRotation() const {return fUseTargetRotation;}
|
||||
void SetUseTargetRotation(bool val) {fUseTargetRotation = val;}
|
||||
|
||||
protected:
|
||||
const static int fFileVersion; // so we don't have to update the global version number when we change
|
||||
@ -445,10 +445,10 @@ protected:
|
||||
int fNumBoids;
|
||||
plKey fBoidKey;
|
||||
|
||||
hsBool fUseTargetRotation;
|
||||
hsBool fRandomizeAnimationStart;
|
||||
bool fUseTargetRotation;
|
||||
bool fRandomizeAnimationStart;
|
||||
|
||||
virtual hsBool IEval(double secs, float del, uint32_t dirty);
|
||||
virtual bool IEval(double secs, float del, uint32_t dirty);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -48,7 +48,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
class plAnimDebugList
|
||||
{
|
||||
public:
|
||||
hsBool fEnabled;
|
||||
bool fEnabled;
|
||||
hsTArray<plKey> fSOKeys;
|
||||
hsTArray<plKey> fMaterialKeys;
|
||||
|
||||
|
@ -145,7 +145,7 @@ void plBlower::IBlow(double secs, float delSecs)
|
||||
fCurrDel = del;
|
||||
}
|
||||
|
||||
hsBool plBlower::IEval(double secs, float delSecs, uint32_t dirty)
|
||||
bool plBlower::IEval(double secs, float delSecs, uint32_t dirty)
|
||||
{
|
||||
const float kMaxDelSecs = 0.1f;
|
||||
if( delSecs > kMaxDelSecs )
|
||||
|
@ -86,7 +86,7 @@ protected:
|
||||
void ISetTargetTransform();
|
||||
void IBlow(double secs, float delSecs);
|
||||
|
||||
virtual hsBool IEval(double secs, float del, uint32_t dirty);
|
||||
virtual bool IEval(double secs, float del, uint32_t dirty);
|
||||
public:
|
||||
~plBlower();
|
||||
plBlower();
|
||||
|
@ -64,7 +64,7 @@ plFollowMod::~plFollowMod()
|
||||
#include "plProfile.h"
|
||||
plProfile_CreateTimer("FollowMod", "RenderSetup", FollowMod);
|
||||
|
||||
hsBool plFollowMod::MsgReceive(plMessage* msg)
|
||||
bool plFollowMod::MsgReceive(plMessage* msg)
|
||||
{
|
||||
plRenderMsg* rend = plRenderMsg::ConvertNoRef(msg);
|
||||
if( rend )
|
||||
@ -110,7 +110,7 @@ hsBool plFollowMod::MsgReceive(plMessage* msg)
|
||||
return plSingleModifier::MsgReceive(msg);
|
||||
}
|
||||
|
||||
hsBool plFollowMod::ICheckLeader()
|
||||
bool plFollowMod::ICheckLeader()
|
||||
{
|
||||
switch( fLeaderType )
|
||||
{
|
||||
@ -218,7 +218,7 @@ void plFollowMod::IMoveTarget()
|
||||
GetTarget()->SetTransform(l2w, w2l);
|
||||
}
|
||||
|
||||
hsBool plFollowMod::IEval(double secs, float del, uint32_t dirty)
|
||||
bool plFollowMod::IEval(double secs, float del, uint32_t dirty)
|
||||
{
|
||||
if( ICheckLeader() )
|
||||
IMoveTarget();
|
||||
|
@ -84,10 +84,10 @@ protected:
|
||||
hsMatrix44 fLeaderL2W;
|
||||
hsMatrix44 fLeaderW2L;
|
||||
|
||||
hsBool ICheckLeader();
|
||||
bool ICheckLeader();
|
||||
void IMoveTarget();
|
||||
|
||||
virtual hsBool IEval(double secs, float del, uint32_t dirty);
|
||||
virtual bool IEval(double secs, float del, uint32_t dirty);
|
||||
|
||||
public:
|
||||
plFollowMod();
|
||||
@ -96,7 +96,7 @@ public:
|
||||
CLASSNAME_REGISTER( plFollowMod );
|
||||
GETINTERFACE_ANY( plFollowMod, plSingleModifier );
|
||||
|
||||
virtual hsBool MsgReceive(plMessage* msg);
|
||||
virtual bool MsgReceive(plMessage* msg);
|
||||
|
||||
virtual void Read(hsStream* stream, hsResMgr* mgr);
|
||||
virtual void Write(hsStream* stream, hsResMgr* mgr);
|
||||
|
@ -79,7 +79,7 @@ public:
|
||||
virtual void Read(hsStream* stream, hsResMgr* mgr);
|
||||
virtual void Write(hsStream* stream, hsResMgr* mgr);
|
||||
|
||||
virtual hsBool HasAnima() const { return fColorCtl || fAmbientCtl || fSpecularCtl; }
|
||||
virtual bool HasAnima() const { return fColorCtl || fAmbientCtl || fSpecularCtl; }
|
||||
|
||||
// Export only
|
||||
void SetColorCtl(plController* ctl) { fColorCtl = ctl; }
|
||||
@ -115,7 +115,7 @@ public:
|
||||
virtual void Read(hsStream* stream, hsResMgr* mgr);
|
||||
virtual void Write(hsStream* stream, hsResMgr* mgr);
|
||||
|
||||
virtual hsBool HasAnima() const { return plLightModifier::HasAnima() || fAttenCtl; }
|
||||
virtual bool HasAnima() const { return plLightModifier::HasAnima() || fAttenCtl; }
|
||||
|
||||
// Export Only
|
||||
void SetAttenCtl(plController* ctl) { fAttenCtl = ctl; }
|
||||
@ -128,7 +128,7 @@ class plSpotModifier : public plOmniModifier
|
||||
{
|
||||
protected:
|
||||
|
||||
plSpotLightInfo* fSpot;
|
||||
plSpotLightInfo* fSpot;
|
||||
|
||||
plController* fInnerCtl;
|
||||
plController* fOuterCtl;
|
||||
@ -149,7 +149,7 @@ public:
|
||||
virtual void Read(hsStream* stream, hsResMgr* mgr);
|
||||
virtual void Write(hsStream* stream, hsResMgr* mgr);
|
||||
|
||||
virtual hsBool HasAnima() const { return plOmniModifier::HasAnima() || fInnerCtl || fOuterCtl; }
|
||||
virtual bool HasAnima() const { return plOmniModifier::HasAnima() || fInnerCtl || fOuterCtl; }
|
||||
|
||||
// Export Only
|
||||
void SetInnerCtl(plController* ctl) { fInnerCtl = ctl; }
|
||||
@ -184,7 +184,7 @@ public:
|
||||
virtual void Read(hsStream* stream, hsResMgr* mgr);
|
||||
virtual void Write(hsStream* stream, hsResMgr* mgr);
|
||||
|
||||
virtual hsBool HasAnima() const { return plLightModifier::HasAnima() || fWidthCtl || fHeightCtl || fDepthCtl; }
|
||||
virtual bool HasAnima() const { return plLightModifier::HasAnima() || fWidthCtl || fHeightCtl || fDepthCtl; }
|
||||
|
||||
// Export Only
|
||||
void SetWidthCtl(plController* ctl) { fWidthCtl = ctl; }
|
||||
|
@ -107,7 +107,7 @@ void plLineFollowMod::SetOffsetFeet(float f)
|
||||
}
|
||||
}
|
||||
|
||||
void plLineFollowMod::SetForceToLine(hsBool on)
|
||||
void plLineFollowMod::SetForceToLine(bool on)
|
||||
{
|
||||
if( on )
|
||||
fFollowFlags |= kForceToLine;
|
||||
@ -218,7 +218,7 @@ void plLineFollowMod::Write(hsStream* stream, hsResMgr* mgr)
|
||||
#include "plProfile.h"
|
||||
plProfile_CreateTimer("LineFollow", "RenderSetup", LineFollow);
|
||||
|
||||
hsBool plLineFollowMod::MsgReceive(plMessage* msg)
|
||||
bool plLineFollowMod::MsgReceive(plMessage* msg)
|
||||
{
|
||||
plGenRefMsg* refMsg = plGenRefMsg::ConvertNoRef(msg);
|
||||
if( refMsg )
|
||||
@ -337,7 +337,7 @@ void plLineFollowMod::IRegister()
|
||||
}
|
||||
}
|
||||
|
||||
hsBool plLineFollowMod::IEval(double secs, float del, uint32_t dirty)
|
||||
bool plLineFollowMod::IEval(double secs, float del, uint32_t dirty)
|
||||
{
|
||||
if( !fPath )
|
||||
return false;
|
||||
@ -361,7 +361,7 @@ hsBool plLineFollowMod::IEval(double secs, float del, uint32_t dirty)
|
||||
return true;
|
||||
}
|
||||
|
||||
hsBool plLineFollowMod::IOffsetTargetTransform(hsMatrix44& tgtXfm)
|
||||
bool plLineFollowMod::IOffsetTargetTransform(hsMatrix44& tgtXfm)
|
||||
{
|
||||
hsPoint3 tgtPos = tgtXfm.GetTranslate();
|
||||
|
||||
@ -407,7 +407,7 @@ hsBool plLineFollowMod::IOffsetTargetTransform(hsMatrix44& tgtXfm)
|
||||
return true;
|
||||
}
|
||||
|
||||
hsBool plLineFollowMod::IGetTargetTransform(hsPoint3& searchPos, hsMatrix44& tgtXfm)
|
||||
bool plLineFollowMod::IGetTargetTransform(hsPoint3& searchPos, hsMatrix44& tgtXfm)
|
||||
{
|
||||
float t = fPath->GetExtremePoint(searchPos);
|
||||
if( fFollowFlags & kFullMatrix )
|
||||
@ -453,7 +453,7 @@ void plLineFollowMod::ICheckForPop(const hsPoint3& oldPos, const hsPoint3& newPo
|
||||
fFollowFlags &= ~kSearchPosPop;
|
||||
}
|
||||
|
||||
hsBool plLineFollowMod::IGetSearchPos()
|
||||
bool plLineFollowMod::IGetSearchPos()
|
||||
{
|
||||
hsPoint3 oldPos = fSearchPos;
|
||||
if( kFollowObject == fFollowMode )
|
||||
@ -642,7 +642,7 @@ plRailCameraMod::~plRailCameraMod()
|
||||
{
|
||||
}
|
||||
|
||||
hsBool plRailCameraMod::IGetTargetTransform(hsPoint3& searchPos, hsMatrix44& tgtXfm)
|
||||
bool plRailCameraMod::IGetTargetTransform(hsPoint3& searchPos, hsMatrix44& tgtXfm)
|
||||
{
|
||||
if (fPath->GetFarthest())
|
||||
{
|
||||
|
@ -97,14 +97,14 @@ protected:
|
||||
float fOffsetClamp;
|
||||
float fSpeedClamp;
|
||||
|
||||
virtual hsBool IEval(double secs, float del, uint32_t dirty);
|
||||
virtual bool IEval(double secs, float del, uint32_t dirty);
|
||||
|
||||
virtual hsBool IGetSearchPos();
|
||||
virtual bool IGetSearchPos();
|
||||
virtual void ISetTargetTransform(int iTarg, const hsMatrix44& tgtXfm);
|
||||
virtual void ISetPathTransform();
|
||||
|
||||
virtual hsBool IGetTargetTransform(hsPoint3& searchPos, hsMatrix44& tgtXfm);
|
||||
virtual hsBool IOffsetTargetTransform(hsMatrix44& tgtXfm);
|
||||
virtual bool IGetTargetTransform(hsPoint3& searchPos, hsMatrix44& tgtXfm);
|
||||
virtual bool IOffsetTargetTransform(hsMatrix44& tgtXfm);
|
||||
virtual hsMatrix44 ISpeedClamp(plCoordinateInterface* ci, const hsMatrix44& unclTgtXfm);
|
||||
hsMatrix44 IInterpMatrices(const hsMatrix44& m0, const hsMatrix44& m1, float parm);
|
||||
void ICheckForPop(const hsPoint3& oldPos, const hsPoint3& newPos);
|
||||
@ -132,28 +132,28 @@ public:
|
||||
void SetFollowMode(FollowMode f);
|
||||
FollowMode GetFollowMode() const { return fFollowMode; }
|
||||
|
||||
hsBool HasOffsetFeet() const { return 0 != (fFollowFlags & kOffsetFeet); }
|
||||
hsBool HasOffsetDegrees() const { return 0 != (fFollowFlags & kOffsetAng); }
|
||||
hsBool HasOffset() const { return 0 != (fFollowFlags & kOffset); }
|
||||
hsBool HasOffsetClamp() const { return 0 != (fFollowFlags & kOffsetClamp); }
|
||||
hsBool HasSpeedClamp() const { return 0 != (fFollowFlags & kSpeedClamp); }
|
||||
bool HasOffsetFeet() const { return 0 != (fFollowFlags & kOffsetFeet); }
|
||||
bool HasOffsetDegrees() const { return 0 != (fFollowFlags & kOffsetAng); }
|
||||
bool HasOffset() const { return 0 != (fFollowFlags & kOffset); }
|
||||
bool HasOffsetClamp() const { return 0 != (fFollowFlags & kOffsetClamp); }
|
||||
bool HasSpeedClamp() const { return 0 != (fFollowFlags & kSpeedClamp); }
|
||||
|
||||
void SetOffsetFeet(float f);
|
||||
float GetOffsetFeet() const { return fOffset; }
|
||||
float GetOffsetFeet() const { return fOffset; }
|
||||
|
||||
void SetOffsetDegrees(float f);
|
||||
float GetOffsetDegrees() const { return hsRadiansToDegrees(fOffset); }
|
||||
float GetOffsetDegrees() const { return hsRadiansToDegrees(fOffset); }
|
||||
|
||||
void SetOffsetClamp(float f);
|
||||
float GetOffsetClamp() const { return fOffsetClamp; }
|
||||
float GetOffsetClamp() const { return fOffsetClamp; }
|
||||
|
||||
void SetForceToLine(hsBool on);
|
||||
hsBool GetForceToLine() const { return 0 != (fFollowFlags & kForceToLine); }
|
||||
void SetForceToLine(bool on);
|
||||
bool GetForceToLine() const { return 0 != (fFollowFlags & kForceToLine); }
|
||||
|
||||
void SetSpeedClamp(float feetPerSec);
|
||||
float GetSpeedClamp() const { return fSpeedClamp; }
|
||||
float GetSpeedClamp() const { return fSpeedClamp; }
|
||||
|
||||
hsBool MsgReceive(plMessage* msg);
|
||||
bool MsgReceive(plMessage* msg);
|
||||
|
||||
virtual void AddTarget(plSceneObject* so);
|
||||
virtual void RemoveTarget(plSceneObject* so);
|
||||
@ -180,12 +180,12 @@ public:
|
||||
protected:
|
||||
|
||||
virtual void ISetTargetTransform(int iTarg, const hsMatrix44& tgtXfm) {fDesiredMatrix = tgtXfm;}
|
||||
virtual hsBool IGetTargetTransform(hsPoint3& searchPos, hsMatrix44& tgtXfm);
|
||||
virtual bool IGetTargetTransform(hsPoint3& searchPos, hsMatrix44& tgtXfm);
|
||||
|
||||
hsMatrix44 fDesiredMatrix;
|
||||
float fCurrentTime;
|
||||
float fTargetTime;
|
||||
float fCurrentTime;
|
||||
float fTargetTime;
|
||||
hsPoint3 fGoal;
|
||||
hsBool fFarthest;
|
||||
bool fFarthest;
|
||||
};
|
||||
#endif // plLineFollowMod_inc
|
||||
|
@ -141,7 +141,7 @@ float plRandomCommandMod::IGetDelay(float len) const
|
||||
return delay;
|
||||
}
|
||||
|
||||
hsBool plRandomCommandMod::ISelectNext(int ncmds)
|
||||
bool plRandomCommandMod::ISelectNext(int ncmds)
|
||||
{
|
||||
if( fMode & kSequential )
|
||||
{
|
||||
@ -200,11 +200,6 @@ void plRandomCommandMod::IStop()
|
||||
fState |= kStopped;
|
||||
}
|
||||
|
||||
hsBool plRandomCommandMod::IStopped() const
|
||||
{
|
||||
return 0 != (fState & kStopped);
|
||||
}
|
||||
|
||||
void plRandomCommandMod::IPlayNextIfMaster()
|
||||
{
|
||||
if( !fTarget )
|
||||
@ -219,7 +214,7 @@ void plRandomCommandMod::IPlayNextIfMaster()
|
||||
IPlayNext();
|
||||
}
|
||||
|
||||
hsBool plRandomCommandMod::MsgReceive(plMessage* msg)
|
||||
bool plRandomCommandMod::MsgReceive(plMessage* msg)
|
||||
{
|
||||
// plAnimCmdMsg - interpret start/stop appropriately.
|
||||
// could overinterpret set loop points to limit range of
|
||||
|
@ -78,7 +78,7 @@ protected:
|
||||
|
||||
void IStart();
|
||||
virtual void IStop();
|
||||
hsBool IStopped() const;
|
||||
bool IStopped() const { return hsCheckBits(fState, kStopped); }
|
||||
void IRetry(float secs);
|
||||
virtual void IPlayNextIfMaster();
|
||||
|
||||
@ -87,14 +87,14 @@ protected:
|
||||
float IGetDelay(float len) const;
|
||||
|
||||
int IExcludeSelections(int ncmds);
|
||||
hsBool ISelectNext(int nAnim); // return false if we should stop, else set fCurrent to next index
|
||||
bool ISelectNext(int nAnim); // return false if we should stop, else set fCurrent to next index
|
||||
|
||||
// Once fCurrent is set to the next animation index to play,
|
||||
// IPlayNext() does whatever it takes to actually play it.
|
||||
virtual void IPlayNext() = 0;
|
||||
|
||||
// We only act in response to messages.
|
||||
virtual hsBool IEval(double secs, float del, uint32_t dirty) { return false; }
|
||||
virtual bool IEval(double secs, float del, uint32_t dirty) { return false; }
|
||||
|
||||
public:
|
||||
plRandomCommandMod();
|
||||
@ -103,23 +103,23 @@ public:
|
||||
CLASSNAME_REGISTER( plRandomCommandMod );
|
||||
GETINTERFACE_ANY( plRandomCommandMod, plSingleModifier );
|
||||
|
||||
virtual hsBool MsgReceive(plMessage* pMsg);
|
||||
virtual bool MsgReceive(plMessage* pMsg);
|
||||
|
||||
virtual void Read(hsStream* s, hsResMgr* mgr);
|
||||
virtual void Write(hsStream* s, hsResMgr* mgr);
|
||||
|
||||
// Export only
|
||||
void SetMode(uint8_t m) { fMode = m; }
|
||||
uint8_t GetMode() const { return fMode; }
|
||||
uint8_t GetMode() const { return fMode; }
|
||||
|
||||
void SetState(uint8_t s) { fState = s; }
|
||||
uint8_t GetState() const { return fState; }
|
||||
uint8_t GetState() const { return fState; }
|
||||
|
||||
void SetMinDelay(float f) { fMinDelay = f; }
|
||||
float GetMinDelay() const { return fMinDelay; }
|
||||
void SetMinDelay(float f) { fMinDelay = f; }
|
||||
float GetMinDelay() const { return fMinDelay; }
|
||||
|
||||
void SetMaxDelay(float f) { fMaxDelay = f; }
|
||||
float GetMaxDelay() const { return fMaxDelay; }
|
||||
void SetMaxDelay(float f) { fMaxDelay = f; }
|
||||
float GetMaxDelay() const { return fMaxDelay; }
|
||||
};
|
||||
|
||||
|
||||
|
@ -107,7 +107,7 @@ void plStereizer::Write(hsStream* stream, hsResMgr* mgr)
|
||||
fInitPos.Write(stream);
|
||||
}
|
||||
|
||||
hsBool plStereizer::MsgReceive(plMessage* msg)
|
||||
bool plStereizer::MsgReceive(plMessage* msg)
|
||||
{
|
||||
plListenerMsg* listenMsg = plListenerMsg::ConvertNoRef(msg);
|
||||
if( listenMsg )
|
||||
@ -119,12 +119,12 @@ hsBool plStereizer::MsgReceive(plMessage* msg)
|
||||
return plSingleModifier::MsgReceive(msg);
|
||||
}
|
||||
|
||||
hsBool plStereizer::IEval(double secs, float del, uint32_t dirty)
|
||||
bool plStereizer::IEval(double secs, float del, uint32_t dirty)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
hsBool plStereizer::Stereize()
|
||||
bool plStereizer::Stereize()
|
||||
{
|
||||
plSceneObject* targ = GetTarget();
|
||||
if( !targ )
|
||||
@ -286,7 +286,7 @@ plCoordinateInterface* plStereizer::IGetParent() const
|
||||
// Or in simpler terms, I want to do it one way, Brice wants to do
|
||||
// it another, and since either would work for this, we're waiting
|
||||
// for a tie breaker case that gives one way or the other an advantage.
|
||||
hsBool plStereizer::CheckForMaster()
|
||||
bool plStereizer::CheckForMaster()
|
||||
{
|
||||
ISetHasMaster(false);
|
||||
plSceneObject* targ = GetTarget();
|
||||
|
@ -82,7 +82,7 @@ protected:
|
||||
hsVector3 fListDirection;
|
||||
hsVector3 fListUp;
|
||||
|
||||
virtual hsBool IEval(double secs, float del, uint32_t dirty);
|
||||
virtual bool IEval(double secs, float del, uint32_t dirty);
|
||||
|
||||
hsPoint3 IGetLocalizedPos(const hsVector3& posToList, float distToList) const;
|
||||
hsPoint3 IGetAmbientPos() const;
|
||||
@ -92,7 +92,7 @@ protected:
|
||||
|
||||
plCoordinateInterface* IGetParent() const;
|
||||
|
||||
void ISetHasMaster(hsBool on) { if(on)SetFlag(kHasMaster); else ClearFlag(kHasMaster); }
|
||||
void ISetHasMaster(bool on) { if(on)SetFlag(kHasMaster); else ClearFlag(kHasMaster); }
|
||||
|
||||
public:
|
||||
plStereizer();
|
||||
@ -104,9 +104,9 @@ public:
|
||||
virtual void Read(hsStream* stream, hsResMgr* mgr);
|
||||
virtual void Write(hsStream* stream, hsResMgr* mgr);
|
||||
|
||||
virtual hsBool MsgReceive(plMessage* msg);
|
||||
virtual bool MsgReceive(plMessage* msg);
|
||||
|
||||
hsBool Stereize();
|
||||
bool Stereize();
|
||||
void SetFromListenerMsg(const plListenerMsg* listMsg);
|
||||
|
||||
void SetAmbientDist(float d) { fAmbientDist = d; }
|
||||
@ -124,8 +124,8 @@ public:
|
||||
void SetSepAngle(float rads);
|
||||
float GetSepAngle() const;
|
||||
|
||||
void SetAsLeftChannel(hsBool on) { if(on)SetFlag(kLeftChannel); else ClearFlag(kLeftChannel); }
|
||||
hsBool IsLeftChannel() const { return HasFlag(kLeftChannel); }
|
||||
void SetAsLeftChannel(bool on) { if(on)SetFlag(kLeftChannel); else ClearFlag(kLeftChannel); }
|
||||
bool IsLeftChannel() const { return HasFlag(kLeftChannel); }
|
||||
|
||||
void SetParentInitPos(const hsPoint3& pos) { fInitPos = pos; }
|
||||
const hsPoint3& GetParentInitPos() const { return fInitPos; }
|
||||
@ -133,8 +133,8 @@ public:
|
||||
void SetWorldInitPos(const hsPoint3& pos);
|
||||
hsPoint3 GetWorldInitPos() const;
|
||||
|
||||
hsBool CheckForMaster();
|
||||
hsBool HasMaster() const { return HasFlag(kHasMaster); }
|
||||
bool CheckForMaster();
|
||||
bool HasMaster() const { return HasFlag(kHasMaster); }
|
||||
};
|
||||
|
||||
#endif // plStereizer_inc
|
@ -129,12 +129,12 @@ void plViewFaceModifier::SetTarget(plSceneObject* so)
|
||||
plgDispatch::Dispatch()->RegisterForExactType(plArmatureUpdateMsg::Index(), GetKey());
|
||||
}
|
||||
|
||||
hsBool plViewFaceModifier::IEval(double secs, float del, uint32_t dirty)
|
||||
bool plViewFaceModifier::IEval(double secs, float del, uint32_t dirty)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
hsBool plViewFaceModifier::IFacePoint(plPipeline* pipe, const hsPoint3& at)
|
||||
bool plViewFaceModifier::IFacePoint(plPipeline* pipe, const hsPoint3& at)
|
||||
{
|
||||
#if 1 // BOUNDSTEST
|
||||
extern int mfCurrentTest;
|
||||
@ -272,7 +272,7 @@ hsBool plViewFaceModifier::IFacePoint(plPipeline* pipe, const hsPoint3& at)
|
||||
#include "plProfile.h"
|
||||
plProfile_CreateTimer("ViewFacing", "RenderSetup", ViewFace);
|
||||
|
||||
hsBool plViewFaceModifier::MsgReceive(plMessage* msg)
|
||||
bool plViewFaceModifier::MsgReceive(plMessage* msg)
|
||||
{
|
||||
plRenderMsg* rend = plRenderMsg::ConvertNoRef(msg);
|
||||
|
||||
@ -438,7 +438,7 @@ plViewFaceModifier::FollowMode plViewFaceModifier::GetFollowMode() const
|
||||
|
||||
}
|
||||
|
||||
void plViewFaceModifier::SetOffset(const hsVector3& off, hsBool local)
|
||||
void plViewFaceModifier::SetOffset(const hsVector3& off, bool local)
|
||||
{
|
||||
fOffset = off;
|
||||
if( local )
|
||||
|
@ -83,8 +83,8 @@ protected:
|
||||
|
||||
hsBounds3Ext fMaxBounds;
|
||||
|
||||
virtual hsBool IFacePoint(plPipeline* pipe, const hsPoint3& at);
|
||||
virtual hsBool IEval(double secs, float del, uint32_t dirty);
|
||||
virtual bool IFacePoint(plPipeline* pipe, const hsPoint3& at);
|
||||
virtual bool IEval(double secs, float del, uint32_t dirty);
|
||||
|
||||
enum RefType
|
||||
{
|
||||
@ -106,7 +106,7 @@ public:
|
||||
virtual void Read(hsStream* stream, hsResMgr* mgr);
|
||||
virtual void Write(hsStream* stream, hsResMgr* mgr);
|
||||
|
||||
virtual hsBool MsgReceive(plMessage* msg);
|
||||
virtual bool MsgReceive(plMessage* msg);
|
||||
|
||||
// ViewFace specific
|
||||
void SetScale(const hsVector3& s) { fScale = s; }
|
||||
@ -116,7 +116,7 @@ public:
|
||||
|
||||
void SetMaxBounds(const hsBounds3Ext& bnd);
|
||||
const hsBounds3Ext& GetMaxBounds() const { return fMaxBounds; }
|
||||
hsBool HaveMaxBounds() const { return HasFlag(kMaxBounds); }
|
||||
bool HaveMaxBounds() const { return HasFlag(kMaxBounds); }
|
||||
|
||||
enum FollowMode
|
||||
{
|
||||
@ -129,12 +129,12 @@ public:
|
||||
FollowMode GetFollowMode() const;
|
||||
plSceneObject* GetFollowObject() const { return fFaceObj; }
|
||||
|
||||
void SetOffsetActive(hsBool on) { if(on) SetFlag(kOffset); else ClearFlag(kOffset); }
|
||||
hsBool GetOffsetActive() const { return HasFlag(kOffset); }
|
||||
void SetOffsetActive(bool on) { if(on) SetFlag(kOffset); else ClearFlag(kOffset); }
|
||||
bool GetOffsetActive() const { return HasFlag(kOffset); }
|
||||
|
||||
void SetOffset(const hsVector3& off, hsBool local=true);
|
||||
void SetOffset(const hsVector3& off, bool local=true);
|
||||
const hsVector3& GetOffset() const { return fOffset; }
|
||||
hsBool GetOffsetLocal() const { return HasFlag(kOffsetLocal); }
|
||||
bool GetOffsetLocal() const { return HasFlag(kOffsetLocal); }
|
||||
};
|
||||
|
||||
#endif // plViewFaceModifier_inc
|
||||
|
Reference in New Issue
Block a user