From 5c6a48b2ff362a70416a6a00fda7d06e0f276f2d Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Sat, 1 Jul 2023 02:43:29 +0100 Subject: i am in hell --- src/T2DLL/T2FInfoAreaIterator.h | 35 +++++------------------------------ 1 file changed, 5 insertions(+), 30 deletions(-) (limited to 'src/T2DLL/T2FInfoAreaIterator.h') 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); +} -- cgit v1.2.3