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

plOneShotMod => plString

This commit is contained in:
2014-01-09 23:10:57 -08:00
parent b16274a8cc
commit 71c9771cfb
2 changed files with 12 additions and 21 deletions

View File

@ -61,37 +61,36 @@ plOneShotMod::plOneShotMod()
fReversable(false),
fSeekDuration(1.0f),
fSmartSeek(false),
fAnimName(nil),
fNoSeek(false)
{
// this constructor is called from the loader.
}
// CTOR(char *)
plOneShotMod::plOneShotMod(const char *animName,
plOneShotMod::plOneShotMod(const plString &animName,
bool drivable,
bool reversable,
float seekDuration,
bool smartSeek,
bool noSeek)
: fDrivable(drivable),
: fAnimName(animName),
fDrivable(drivable),
fReversable(reversable),
fSeekDuration(seekDuration),
fSmartSeek((float)smartSeek),
fNoSeek(noSeek)
{
fAnimName = hsStrcpy(animName);
}
// INIT
void plOneShotMod::Init(const char *animName,
void plOneShotMod::Init(const plString &animName,
bool drivable,
bool reversable,
float seekDuration,
bool smartSeek,
bool noSeek)
{
fAnimName = hsStrcpy(animName);
fAnimName = animName;
fDrivable = drivable;
fReversable = reversable;
fSeekDuration = seekDuration;
@ -99,15 +98,6 @@ void plOneShotMod::Init(const char *animName,
fNoSeek = noSeek;
}
// DTOR()
plOneShotMod::~plOneShotMod()
{
if(fAnimName) {
delete[] fAnimName;
fAnimName = nil;
}
}
// MSGRECEIVE
bool plOneShotMod::MsgReceive(plMessage* msg)
@ -164,7 +154,7 @@ void plOneShotMod::Read(hsStream *stream, hsResMgr *mgr)
plMultiModifier::Read(stream, mgr);
// read in the name of the animation itself
fAnimName = stream->ReadSafeString();
fAnimName = stream->ReadSafeString_TEMP();
fSeekDuration = stream->ReadLEScalar();
fDrivable = stream->ReadBool();
fReversable = stream->ReadBool();