diff options
author | Ash Wolf <ninji@wuffs.org> | 2023-06-14 00:50:34 +0100 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2023-06-14 00:50:34 +0100 |
commit | 37e364b2c6cc7487a1c888d256a73e5337bb7189 (patch) | |
tree | eaf6e857382eef16c2dd940eb4125536fbe068bd /src/T2DLL/T2People.h | |
download | t2win-37e364b2c6cc7487a1c888d256a73e5337bb7189.tar.gz t2win-37e364b2c6cc7487a1c888d256a73e5337bb7189.zip |
initial commit
Diffstat (limited to '')
-rw-r--r-- | src/T2DLL/T2People.h | 122 |
1 files changed, 122 insertions, 0 deletions
diff --git a/src/T2DLL/T2People.h b/src/T2DLL/T2People.h new file mode 100644 index 0000000..f02058b --- /dev/null +++ b/src/T2DLL/T2People.h @@ -0,0 +1,122 @@ +#pragma once +#include "common.h" + +class T2People { +public: + T2People(); +private: + void Initialize(); +public: + virtual ~T2People(); + virtual void SetUsed(int); + void Initialize(T2PeopleDef*, T2PeopleType*); + int IsMale() const; + int IsGeneral() const; + int IsSpecialColor() const; + void ChangeStyle(int); + int GetWidth() const; + int GetRouteType(); + int CalcWaitPersonArea(T2FloorInfo*, RECT&); + void CalcWalkingSilhouetteArea(RECT&) const; + unsigned int GetCurTenantID() const; + virtual unsigned int Idle(T2TowerDoc*); +protected: + void IdleWaitMover(T2TowerDoc*); + void MoveToTowerEntrance(T2TowerDoc*); + void MoveToLobby(T2TowerDoc*); + int MoveToParking(T2TowerDoc*); + int MoveToSubway(T2TowerDoc*); + int MoveToShip(T2TowerDoc*); + void MoveByEStair(T2TowerDoc*); + void SolveNoRoute(T2TowerDoc*); + int FindRoute(T2TowerDoc*); + void JumpToDestination(T2TowerDoc*); +public: + void GoOutTower(T2TowerDoc*); + void IdleSearchedPerson(T2TowerDoc*); +protected: + int WalkSearchedPersonRight(T2TowerDoc*); + int WalkSearchedPersonLeft(T2TowerDoc*); + int IsReachDestination(int); + int IsRegistRequest(T2TowerDoc*); +public: + void ChangeStatus(int); +protected: + void ChangeSilhouette(); + void SetSilhouette(); +public: + void ChangeWalkStyle(int); + void SetAnimePattern(int, int, int, int); + int StopOnHisWay(T2TenantMemberDef*, int, int, RECT, int, int, int, int); + int CalledInTenant(T2TenantMemberDef*, int, int, int, unsigned int, unsigned int); +protected: + int CalcFreeTime(unsigned int); +public: + int IsGoToPool() const; + void Return(); + void SetDestinationToOutOfTower(T2TowerDoc*); + void ChangeDestination(unsigned int, unsigned int); + int CalcCurrEstimate() const; + void IncEstimate(int); + void UpdateEstimation(); + int GetAverageStress() const; + int IncStress(int); +protected: + int StressChanged(); +public: + int IsVIP() const; + int IsNamed() const; + void SetColor(int); + void ClearColor(); + virtual void SetFavorite(int); + int VIPEstimation(); + int SearchToilet(T2TowerDoc*); + void DrawSearchedPerson(T2TowerDoc*); + virtual void Draw(T2TowerDoc*, const RECT&); + void Draw(T2BitImage*, const RECT&); + void Draw(T2TowerDoc*, T2Equip*); + void DrawAt(T2TowerDoc*, T2Equip*, POINT); + void Duplicate(T2TowerDoc*); + void Remove(T2TowerDoc*, unsigned int); + void TenantRemoved(unsigned int); + void Interview(T2TowerDoc*); + int GetInterviewWords(T2TowerDoc*, CString&); + int IsMaru() const; + int IsReggae() const; + void BreakoutEmergency(T2TowerDoc*); +protected: + virtual void LoadSelf(T2Archive&, T2TowerDoc*); + virtual void SaveSelf(T2Archive&); +public: + void ResolveLink(T2PeopleArrayList*); + virtual T2InfoDialog* ShowInfoDialog(T2TowerDoc*); + void GetName(CString&); + virtual int GetSilhouetteRect(RECT&); + virtual void DrawHitMask(T2TowerDoc*); + void ClearSpecialFlag(unsigned int); + void SetSpecialFlag(unsigned int); + + unsigned int GetPeopleID() { return 0; } + T2PeopleType* GetPeopleType() const { return 0; } + unsigned int GetEconoType() { return 0; } + int IsFatSilhouette() const { return 0; } + int IsInTower() const { return 0; } + int GetColor() const { return 0; } + int IsSetSpecialFlag(unsigned int) const { return 0; } + void SetToSleep() {} + int IsSleep() const { return 0; } + int IsWalk() const { return 0; } + void SetWalk(int) {} + void SetFiller(int) {} + void SetStyle(int) {} + int GetStyle() const { return 0; } + void SetSilhouetteDef(int, T2SilhouetteDef*) {} + void SetPeopleType(T2PeopleType*) {} + void SetPrevTenantType(int) {} + int GetPrevTenantType() const { return 0; } + void InitStress() {} + int GetStress() const { return 0; } + int GetEstimate() const { return 0; } + unsigned int GetAge() const { return 0; } + unsigned int GetSex() const { return 0; } +}; |