1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-17 10:52:46 +00:00

Obliterate hsBool

This commit is contained in:
2012-07-11 01:28:00 -04:00
parent 5f78b33db4
commit a709e17069
1041 changed files with 7889 additions and 8070 deletions

View File

@ -239,7 +239,7 @@ void plAnimStealthNode::StuffToTimeConvert( plAnimTimeConvert &convert, float
//// plAnimObjInterface Functions ////////////////////////////////////////////
hsBool plAnimStealthNode::GetKeyList( INode *restrictedNode, hsTArray<plKey> &outKeys )
bool plAnimStealthNode::GetKeyList( INode *restrictedNode, hsTArray<plKey> &outKeys )
{
if( !fPreppedForConvert )
{
@ -255,7 +255,7 @@ hsBool plAnimStealthNode::GetKeyList( INode *restrictedNode, hsTArray<plKey> &o
//// SetupProperties /////////////////////////////////////////////////////////
hsBool plAnimStealthNode::SetupProperties( plMaxNode *node, plErrorMsg *pErrMsg )
bool plAnimStealthNode::SetupProperties( plMaxNode *node, plErrorMsg *pErrMsg )
{
fPreppedForConvert = true;
plPassMtlBase *parent = GetParentMtl();
@ -268,7 +268,7 @@ hsBool plAnimStealthNode::SetupProperties( plMaxNode *node, plErrorMsg *pErrMsg
//// ConvertDeInit ///////////////////////////////////////////////////////////
hsBool plAnimStealthNode::ConvertDeInit( plMaxNode *node, plErrorMsg *pErrMsg )
bool plAnimStealthNode::ConvertDeInit( plMaxNode *node, plErrorMsg *pErrMsg )
{
fPreppedForConvert = false;
if( fCachedSegMap != nil )

View File

@ -422,7 +422,7 @@ class plGetRefs : public DependentEnumProc
}
};
hsBool plAnimStealthNode::IsParentUsedInScene( void )
bool plAnimStealthNode::IsParentUsedInScene( void )
{
if( GetParentMtl() == nil )
return false;
@ -878,7 +878,7 @@ void plAnimStealthNode::PickTargetNode( IParamBlock2 *destPB, ParamID destPar
pick.DoPick();
}
plString plAnimStealthNode::GetIfaceSegmentName( hsBool allowNil )
plString plAnimStealthNode::GetIfaceSegmentName( bool allowNil )
{
// When sending messages to material animations, they're already addressed for the right
// layer, no need for a segment name

View File

@ -85,7 +85,7 @@ protected:
static ParamBlockDesc2 sAnimStealthPB;
hsBool fPreppedForConvert;
bool fPreppedForConvert;
SegmentMap *fCachedSegMap;
SegmentSpec *IGetSegmentSpec( void ) const;
@ -227,17 +227,17 @@ public:
// plAnimObjInterface functions
virtual void PickTargetNode( IParamBlock2 *destPB, ParamID destParamID, ParamID typeID );
virtual hsBool IsNodeRestricted( void ) { return true; }
virtual plString GetIfaceSegmentName( hsBool allowNil );
virtual hsBool GetKeyList( INode *restrictedNode, hsTArray<plKey> &outKeys );
virtual hsBool MightRequireSeparateMaterial( void ) { return true; }
virtual bool IsNodeRestricted( void ) { return true; }
virtual plString GetIfaceSegmentName( bool allowNil );
virtual bool GetKeyList( INode *restrictedNode, hsTArray<plKey> &outKeys );
virtual bool MightRequireSeparateMaterial( void ) { return true; }
// Convert time, called on the setupProps pass for each material applied to a node in the scene
virtual hsBool SetupProperties( plMaxNode *node, plErrorMsg *pErrMsg );
virtual hsBool ConvertDeInit( plMaxNode *node, plErrorMsg *pErrMsg );
virtual bool SetupProperties( plMaxNode *node, plErrorMsg *pErrMsg );
virtual bool ConvertDeInit( plMaxNode *node, plErrorMsg *pErrMsg );
// Returns true if the parent material is applied to any node in the scene, false otherwise
hsBool IsParentUsedInScene( void );
bool IsParentUsedInScene( void );
};
//// Accessor for Parent's ParamBlock ////////////////////////////////////////

View File

@ -140,7 +140,7 @@ public:
Texmap *GetThumbnail() { return fBasicPB->GetTexmap(ParamID(kThumbnail)); }
const char *GetDescription() { return fBasicPB->GetStr(ParamID(kDescription)); }
const char *GetCustomText() { return fBasicPB->GetStr(ParamID(kCustomTextSpecs)); }
hsBool GetDefault() { return fBasicPB->GetInt(ParamID(kDefault)) != 0; }
bool GetDefault() { return fBasicPB->GetInt(ParamID(kDefault)) != 0; }
Color GetDefaultTint1() { return fBasicPB->GetColor(plClothingMtl::kDefaultTint1); }
Color GetDefaultTint2() { return fBasicPB->GetColor(plClothingMtl::kDefaultTint2); }
const char *GetForcedAccessoryName() { return fBasicPB->GetStr(ParamID(kForcedAcc)); }

View File

@ -314,7 +314,7 @@ public:
if (selectedNewBitmap)
{
// Check if it's ok, and undo if not.
hsBool choiceOk = true;
bool choiceOk = true;
pbbm = layer->GetPBBitmap();
if (pbbm != nil)

View File

@ -193,7 +193,7 @@ void plPassAnimDlgProc::SegmentListChanged( void )
ILoadNames( fCurrParamMap->GetParamBlock() );
}
void plPassAnimDlgProc::IUpdateSegmentSel( IParamMap2 *thisMap, hsBool clear )
void plPassAnimDlgProc::IUpdateSegmentSel( IParamMap2 *thisMap, bool clear )
{
plAnimStealthNode *newStealth;
HWND hAnims = GetDlgItem( fhWnd, IDC_NAMES );
@ -300,7 +300,7 @@ void plPassAnimDlgProc::ILoadNames(IParamBlock2 *pb )
fInitingNames = false;
}
void plPassAnimDlgProc::IEnableGlobal(HWND hWnd, hsBool enable)
void plPassAnimDlgProc::IEnableGlobal(HWND hWnd, bool enable)
{
Edit_Enable(GetDlgItem(hWnd, IDC_MTL_GLOBAL_NAME), enable);
ComboBox_Enable(GetDlgItem(hWnd, IDC_NAMES), !enable);

View File

@ -87,12 +87,12 @@ class plPassAnimDlgProc : public ParamMap2UserDlgProc, public plMtlChangeCallbac
protected:
// Set all the controls to their stored value
void IInitControls(Animatable *anim, IParamBlock2 *pb);
void IEnableGlobal(HWND hWnd, hsBool enable);
void IEnableGlobal(HWND hWnd, bool enable);
void ILoadNames( IParamBlock2 *pb );
void IExposeStealthNode( HelperObject *stealth, IParamMap2 *thisMap );
void IUpdateSegmentSel( IParamMap2 *thisMap, hsBool clear = false );
void IUpdateSegmentSel( IParamMap2 *thisMap, bool clear = false );
void IEnableEaseStopPoints( IParamMap2 *pm, bool enable );
};

View File

@ -165,7 +165,7 @@ plAnimStealthNode *plPassMtlBase::GetStealth( int index )
return IGetStealth( index, false );
}
int plPassMtlBase::IGetNumStealths( hsBool update )
int plPassMtlBase::IGetNumStealths( bool update )
{
if( update )
IUpdateAnimNodes();
@ -173,7 +173,7 @@ int plPassMtlBase::IGetNumStealths( hsBool update )
return fAnimPB->Count( (ParamID)kPBAnimStealthNodes );
}
plAnimStealthNode *plPassMtlBase::IGetStealth( int index, hsBool update )
plAnimStealthNode *plPassMtlBase::IGetStealth( int index, bool update )
{
if( update )
IUpdateAnimNodes();
@ -645,9 +645,9 @@ plPassMtlBase *plPassMtlBase::ConvertToPassMtl( Mtl *mtl )
//// SetupProperties /////////////////////////////////////////////////////////
hsBool plPassMtlBase::SetupProperties( plMaxNode *node, plErrorMsg *pErrMsg )
bool plPassMtlBase::SetupProperties( plMaxNode *node, plErrorMsg *pErrMsg )
{
hsBool ret = true;
bool ret = true;
// Call SetupProperties on all our animStealths if we have any
int i, count = IGetNumStealths();
@ -662,9 +662,9 @@ hsBool plPassMtlBase::SetupProperties( plMaxNode *node, plErrorMsg *pErrMsg )
//// ConvertDeInit ///////////////////////////////////////////////////////////
hsBool plPassMtlBase::ConvertDeInit( plMaxNode *node, plErrorMsg *pErrMsg )
bool plPassMtlBase::ConvertDeInit( plMaxNode *node, plErrorMsg *pErrMsg )
{
hsBool ret = true;
bool ret = true;
// Call ConvertDeInit on all our animStealths if we have any
int i, count = IGetNumStealths();

View File

@ -74,19 +74,19 @@ protected:
Interval fIValid;
hsBool fLoading;
bool fLoading;
hsTArray<NoteTrack *> fNotetracks;
hsBool fStealthsChanged;
bool fStealthsChanged;
hsTArray<plMtlChangeCallback *> fChangeCallbacks;
void IUpdateAnimNodes( void );
plAnimStealthNode *IFindStealth( const plString &animName );
plAnimStealthNode *IVerifyStealthPresent( const plString &animName );
int IGetNumStealths( hsBool update = true );
plAnimStealthNode *IGetStealth( int index, hsBool update = true );
int IGetNumStealths( bool update = true );
plAnimStealthNode *IGetStealth( int index, bool update = true );
void ICloneBase( plPassMtlBase *target, RemapDir &remap );
virtual void ICloneRefs( plPassMtlBase *target, RemapDir &remap ) = 0;
@ -111,7 +111,7 @@ public:
//kRefAnim,
kRefNotetracks = 4 // MUST BE THE LAST REF ID SPECIFIED
};
void SetLoadingFlag( hsBool f ) { fLoading = f; }
void SetLoadingFlag( bool f ) { fLoading = f; }
void PostLoadAnimPBFixup( void );
void RegisterChangeCallback( plMtlChangeCallback *callback );
@ -134,8 +134,8 @@ public:
RefResult NotifyRefChanged( Interval changeInt, RefTargetHandle hTarget, PartID &partID, RefMessage message );
// Convert time, called on the setupProps pass for each material applied to a node in the scene
virtual hsBool SetupProperties( plMaxNode *node, plErrorMsg *pErrMsg );
virtual hsBool ConvertDeInit( plMaxNode *node, plErrorMsg *pErrMsg );
virtual bool SetupProperties( plMaxNode *node, plErrorMsg *pErrMsg );
virtual bool ConvertDeInit( plMaxNode *node, plErrorMsg *pErrMsg );
int GetNumStealths( void );
plAnimStealthNode *GetStealth( int index );