diff options
Diffstat (limited to '')
-rw-r--r-- | src/T2DLL/T2Object.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/T2DLL/T2Object.h b/src/T2DLL/T2Object.h index e7c2c4b..a7ca87e 100644 --- a/src/T2DLL/T2Object.h +++ b/src/T2DLL/T2Object.h @@ -38,26 +38,29 @@ enum { kStatus16, }; -class AFX_EXT_CLASS T2Object { +class AFX_CLASS_EXPORT T2Object { public: T2Object(); virtual ~T2Object() {} + BOOL IsUsed() const { return mUsed; } virtual void SetUsed(BOOL u) { mUsed = u; } + + int GetStatus() const { return mStatus; } + void SetStatus(int s) { mStatus = s; } + virtual BOOL Enter(CLink*) { return false; } virtual BOOL Leave(CLink*) { return false; } virtual unsigned int Idle(T2TowerDoc*) { return 0; } + + BOOL IsFavorite() const { return mFavorite; } virtual void SetFavorite(BOOL v); + virtual void Load(T2Archive& archive, T2TowerDoc* towerDoc); virtual void Save(T2Archive& archive); virtual void LoadSelf(T2Archive& archive, T2TowerDoc* towerDoc); virtual void SaveSelf(T2Archive& archive); - BOOL IsUsed() const { return mUsed; } - int GetStatus() const { return mStatus; } - void SetStatus(int s) { mStatus = s; } - BOOL IsFavorite() const { return mFavorite; } - protected: virtual void InitLoaded(); |