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/T2People.h | |
parent | c0c336500955a23e344651e5412c9d9d441ef4ee (diff) | |
download | t2win-5c6a48b2ff362a70416a6a00fda7d06e0f276f2d.tar.gz t2win-5c6a48b2ff362a70416a6a00fda7d06e0f276f2d.zip |
i am in hell
Diffstat (limited to '')
-rw-r--r-- | src/T2DLL/T2People.h | 29 |
1 files changed, 16 insertions, 13 deletions
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; +} |