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/T2People.h | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) (limited to 'src/T2DLL/T2People.h') diff --git a/src/T2DLL/T2People.h b/src/T2DLL/T2People.h index d1c99ec..74c63d0 100644 --- a/src/T2DLL/T2People.h +++ b/src/T2DLL/T2People.h @@ -22,7 +22,7 @@ enum { kMaxPeopleStyle = 2 }; -class AFX_EXT_CLASS T2People : public CLink, public T2Matter { +class AFX_CLASS_EXPORT T2People : public CLink, public T2Matter { public: T2People(); virtual ~T2People(); @@ -106,18 +106,8 @@ public: void InitStress() { mStress = 0; } int GetStress() const { return mStress; } int GetEstimate() const { return mEstimate; } - unsigned int GetAge() const { - unsigned int age = 0; - if (mPeopleType) - age = mPeopleType->GetAge(); - return age; - } - unsigned int GetSex() const { - unsigned int sex = 1; - if (mPeopleType) - sex = !mPeopleType->IsMale(); - return sex; - } + unsigned int GetAge() const; + unsigned int GetSex() const; protected: virtual void LoadSelf(T2Archive&, T2TowerDoc*); @@ -170,3 +160,16 @@ protected: private: void Initialize(); }; + +inline unsigned int T2People::GetAge() const { + unsigned int age = 0; + if (mPeopleType) + age = mPeopleType->GetAge(); + return age; +} +inline unsigned int T2People::GetSex() const { + unsigned int sex = 1; + if (mPeopleType) + sex = !mPeopleType->IsMale(); + return sex; +} -- cgit v1.2.3