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/T2FInfoAreaIterator.h | |
parent | c0c336500955a23e344651e5412c9d9d441ef4ee (diff) | |
download | t2win-5c6a48b2ff362a70416a6a00fda7d06e0f276f2d.tar.gz t2win-5c6a48b2ff362a70416a6a00fda7d06e0f276f2d.zip |
i am in hell
Diffstat (limited to '')
-rw-r--r-- | src/T2DLL/T2FInfoAreaIterator.h | 35 |
1 files changed, 5 insertions, 30 deletions
diff --git a/src/T2DLL/T2FInfoAreaIterator.h b/src/T2DLL/T2FInfoAreaIterator.h index fcd389a..1a35d42 100644 --- a/src/T2DLL/T2FInfoAreaIterator.h +++ b/src/T2DLL/T2FInfoAreaIterator.h @@ -1,7 +1,7 @@ #pragma once #include "common.h" -class AFX_EXT_CLASS T2FInfoAreaIterator { +class AFX_CLASS_EXPORT T2FInfoAreaIterator { public: T2FInfoAreaIterator(const T2FloorInfo& inFloorInfo, const RECT&); virtual ~T2FInfoAreaIterator(); @@ -17,9 +17,7 @@ public: protected: BOOL CalcNextUnitInfo(); - BOOL IsValidPosition() const { - return (mCurrH > -1); - } + BOOL IsValidPosition() const; const T2FloorInfo &mFloorInfo; RECT mRect; @@ -30,29 +28,6 @@ protected: unsigned int mLastIDSeen; }; -class AFX_EXT_CLASS T2FInfoPtIterator { -public: - T2FInfoPtIterator(const T2FloorInfo& inFloorInfo, POINT inPt); - virtual ~T2FInfoPtIterator(); - - BOOL CurrentH(int& outH) const; - BOOL Current(T2UnitInfo*& outUnitInfo); - BOOL Right(T2UnitInfo*& outUnitInfo); - BOOL Left(T2UnitInfo*& outUnitInfo); - BOOL RightTenant(T2Tenant*& outTenant); - BOOL LeftTenant(T2Tenant*& outTenant); - -protected: - BOOL CalcRightUnitInfo(); - BOOL CalcLeftUnitInfo(); - BOOL IsValidPosition() const { - return (mCurrH > -1); - } - - const T2FloorInfo &mFloorInfo; - int mLeftBound; - int mRightBound; - int mCurrH; - T2UnitInfo *mCurrUnitInfo; - unsigned int mLastIDSeen; -}; +inline BOOL T2FInfoAreaIterator::IsValidPosition() const { + return (mCurrH > -1); +} |