diff options
author | Ash Wolf <ninji@wuffs.org> | 2023-07-01 02:43:29 +0100 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2023-07-01 02:43:29 +0100 |
commit | 5c6a48b2ff362a70416a6a00fda7d06e0f276f2d (patch) | |
tree | 62cf542c68d91aa6f7a4e3bfa9eddca4ab352970 /src/T2DLL/T2PeopleAnimeDef.cpp | |
parent | c0c336500955a23e344651e5412c9d9d441ef4ee (diff) | |
download | t2win-5c6a48b2ff362a70416a6a00fda7d06e0f276f2d.tar.gz t2win-5c6a48b2ff362a70416a6a00fda7d06e0f276f2d.zip |
i am in hell
Diffstat (limited to '')
-rw-r--r-- | src/T2DLL/T2PeopleAnimeDef.cpp | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/src/T2DLL/T2PeopleAnimeDef.cpp b/src/T2DLL/T2PeopleAnimeDef.cpp index 7297df0..a392cca 100644 --- a/src/T2DLL/T2PeopleAnimeDef.cpp +++ b/src/T2DLL/T2PeopleAnimeDef.cpp @@ -1,6 +1,7 @@ #include "CResFile.h" #include "T2People.h" #include "T2PeopleAnimeDef.h" +#include "T2PeopleAnimeDefElem.h" #include "UT2Utils.h" T2PeopleAnimeDef::T2PeopleAnimeDef(CResFile& resFile) { @@ -35,31 +36,3 @@ void T2PeopleAnimeDef::Set(T2People* people, int h, int inIndex) { mElems[index].Set(people, h); } } - - - -T2PeopleAnimeDefElem::T2PeopleAnimeDefElem() { - mFillerStart = 0; - mFillerRange = 0; - mHStart = 0; - mHRange = 0; -} - -/*virtual*/ T2PeopleAnimeDefElem::~T2PeopleAnimeDefElem() { -} - -void T2PeopleAnimeDefElem::Initialize(CResFile& resFile) { - resFile >> mFillerStart; - resFile >> mFillerRange; - resFile >> mHStart; - resFile >> mHRange; -} - -void T2PeopleAnimeDefElem::Set(T2People* people, int h) { - if (mFillerStart >= 0) { - people->SetFiller(mFillerStart + UT2Utils::Randomize(mFillerRange)); - people->MoveHTo(h + mHStart + UT2Utils::Randomize(mHRange)); - } else { - people->SetFiller(-1); - } -} |