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

Convert custom HeadSpin integer types to standard types from stdint.h

This commit is contained in:
2012-01-19 21:19:26 -05:00
parent a0d54e2644
commit 5027b5a4ac
1301 changed files with 14497 additions and 14532 deletions

View File

@ -62,7 +62,7 @@ class pfGUINotifyMsg : public plMessage
{
protected:
plKey fControlKey; // who start this mess
UInt32 fEvent; // what was the event that happened
uint32_t fEvent; // what was the event that happened
public:
pfGUINotifyMsg() : plMessage() {}
@ -112,14 +112,14 @@ public:
// kTextBox
// kDragBar
void SetEvent( plKey &key, UInt32 event)
void SetEvent( plKey &key, uint32_t event)
{
fControlKey = key;
fEvent = event;
}
plKey GetControlKey() { return fControlKey; }
UInt32 GetEvent() { return fEvent; }
uint32_t GetEvent() { return fEvent; }
// IO
void Read(hsStream* stream, hsResMgr* mgr)

View File

@ -56,7 +56,7 @@ class pfGameGUIMsg : public plMessage
{
protected:
UInt8 fCommand;
uint8_t fCommand;
char fString[ 128 ];
char *fAge;
@ -69,7 +69,7 @@ class pfGameGUIMsg : public plMessage
};
pfGameGUIMsg() : plMessage( nil, nil, nil ) { SetBCastFlag( kBCastByExactType ); fAge = nil; }
pfGameGUIMsg( plKey &receiver, UInt8 command ) : plMessage( nil, nil, nil ) { AddReceiver( receiver ); fCommand = command; fAge = nil; }
pfGameGUIMsg( plKey &receiver, uint8_t command ) : plMessage( nil, nil, nil ) { AddReceiver( receiver ); fCommand = command; fAge = nil; }
~pfGameGUIMsg() { delete [] fAge; }
CLASSNAME_REGISTER( pfGameGUIMsg );
@ -91,7 +91,7 @@ class pfGameGUIMsg : public plMessage
s->WriteSafeString( fAge );
}
UInt8 GetCommand( void ) { return fCommand; }
uint8_t GetCommand( void ) { return fCommand; }
void SetString( const char *str ) { hsStrncpy( fString, str, sizeof( fString ) - 1 ); }
const char *GetString( void ) { return fString; }

View File

@ -61,19 +61,19 @@ class pfKIMsg : public plMessage
#ifndef KI_CONSTANTS_ONLY
protected:
UInt8 fCommand;
UInt32 fFlags;
uint8_t fCommand;
uint32_t fFlags;
// for the hack chat message thingy
char *fUser;
UInt32 fPlayerID;
uint32_t fPlayerID;
std::wstring fString;
// for the SetChatFadeDelay
hsScalar fDelay;
// other values
Int32 fValue;
int32_t fValue;
void IInit()
{
@ -179,8 +179,8 @@ class pfKIMsg : public plMessage
#ifndef KI_CONSTANTS_ONLY
pfKIMsg() : plMessage( nil, nil, nil ) { SetBCastFlag( kBCastByExactType ); IInit(); }
pfKIMsg( UInt8 command ) : plMessage( nil, nil, nil ) { SetBCastFlag( kBCastByExactType ); IInit(); fCommand = command; }
pfKIMsg( plKey &receiver, UInt8 command ) : plMessage( nil, nil, nil ) { AddReceiver( receiver ); IInit(); fCommand = command; }
pfKIMsg( uint8_t command ) : plMessage( nil, nil, nil ) { SetBCastFlag( kBCastByExactType ); IInit(); fCommand = command; }
pfKIMsg( plKey &receiver, uint8_t command ) : plMessage( nil, nil, nil ) { AddReceiver( receiver ); IInit(); fCommand = command; }
~pfKIMsg() { delete [] fUser; }
CLASSNAME_REGISTER( pfKIMsg );
@ -217,25 +217,25 @@ class pfKIMsg : public plMessage
s->WriteLE32( fValue );
}
UInt8 GetCommand( void ) const { return fCommand; }
uint8_t GetCommand( void ) const { return fCommand; }
void SetString( const char *str );
void SetString( const wchar_t *str ) { fString = str; }
std::string GetString( void );
std::wstring GetStringU( void ) { return fString; }
void SetUser( const char *str, UInt32 pid=0 ) { fUser = hsStrcpy( str ); fPlayerID = pid; }
void SetUser( const char *str, uint32_t pid=0 ) { fUser = hsStrcpy( str ); fPlayerID = pid; }
const char *GetUser( void ) { return fUser; }
UInt32 GetPlayerID( void ) { return fPlayerID; }
uint32_t GetPlayerID( void ) { return fPlayerID; }
void SetFlags( UInt32 flags ) { fFlags = flags; }
UInt32 GetFlags( void ) const { return fFlags; }
void SetFlags( uint32_t flags ) { fFlags = flags; }
uint32_t GetFlags( void ) const { return fFlags; }
void SetDelay( hsScalar delay ) { fDelay = delay; }
hsScalar GetDelay( void ) { return fDelay; }
void SetIntValue( Int32 value ) { fValue = value; }
Int32 GetIntValue( void ) { return fValue; }
void SetIntValue( int32_t value ) { fValue = value; }
int32_t GetIntValue( void ) { return fValue; }
#endif // def KI_CONSTANTS_ONLY
};

View File

@ -56,7 +56,7 @@ public:
};
Type fType;
UInt32 fMarkerID;
uint32_t fMarkerID;
pfMarkerMsg();
virtual ~pfMarkerMsg();

View File

@ -48,7 +48,7 @@ class plArmatureEffectMsg : public plEventCallbackMsg
{
public:
plArmatureEffectMsg() : plEventCallbackMsg(), fTriggerIdx(-1) {}
plArmatureEffectMsg(const plKey &receiver, CallbackEvent e, int idx=0, hsScalar t=0, Int16 repeats=-1, UInt16 user=0) :
plArmatureEffectMsg(const plKey &receiver, CallbackEvent e, int idx=0, hsScalar t=0, int16_t repeats=-1, uint16_t user=0) :
plEventCallbackMsg(receiver, e, idx, t, repeats, user), fTriggerIdx(-1) {}
CLASSNAME_REGISTER( plArmatureEffectMsg );
@ -58,7 +58,7 @@ public:
void Read(hsStream* stream, hsResMgr* mgr) {}
void Write(hsStream* stream, hsResMgr* mgr) {}
Int8 fTriggerIdx;
int8_t fTriggerIdx;
};
class plArmatureEffectStateMsg : public plMessage
@ -73,7 +73,7 @@ public:
virtual void Read(hsStream* stream, hsResMgr* mgr);
virtual void Write(hsStream* stream, hsResMgr* mgr);
Int8 fSurface;
int8_t fSurface;
hsBool fAddSurface;
};

View File

@ -51,13 +51,13 @@ class hsResMgr;
class plClothingMsg : public plMessage
{
protected:
UInt32 fCommands;
uint32_t fCommands;
public:
plKey fItemKey;
hsColorRGBA fColor;
UInt8 fLayer;
UInt8 fDelta;
uint8_t fLayer;
uint8_t fDelta;
hsScalar fWeight;
plClothingMsg() : fCommands(0), fItemKey(nil), fLayer(0), fDelta(0), fWeight(0) { fColor.Set(1.f, 1.f, 1.f, 1.f); }
@ -79,8 +79,8 @@ public:
kSaveCustomizations = 0x0100,
};
hsBool GetCommand(UInt32 command) { return fCommands & command; }
void AddCommand(UInt32 command) { fCommands |= command; }
hsBool GetCommand(uint32_t command) { return fCommands & command; }
void AddCommand(uint32_t command) { fCommands |= command; }
hsBool ResendUpdate() { return fCommands != kUpdateTexture; }
// IO
@ -97,10 +97,10 @@ class plElementRefMsg : public plGenRefMsg
{
public:
char *fElementName;
UInt32 fLayer;
uint32_t fLayer;
plElementRefMsg() : plGenRefMsg(), fElementName(nil), fLayer(1) {}
plElementRefMsg(const plKey &r, UInt8 c, int which, int type, char *name, UInt8 layer) : plGenRefMsg(r, c, which, type)
plElementRefMsg(const plKey &r, uint8_t c, int which, int type, char *name, uint8_t layer) : plGenRefMsg(r, c, which, type)
{
fLayer = layer;
fElementName = hsStrcpy(name);