diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-16 10:30:58 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-16 10:30:58 +0200 |
commit | 9067469f7c4a469e713a37ea6b86920397168e13 (patch) | |
tree | 6d1a7117a62d14ac7434115d8a6525d29a28c8c1 /src/peds/PedAttactor.cpp | |
parent | a few fixes (diff) | |
download | re3-9067469f7c4a469e713a37ea6b86920397168e13.tar re3-9067469f7c4a469e713a37ea6b86920397168e13.tar.gz re3-9067469f7c4a469e713a37ea6b86920397168e13.tar.bz2 re3-9067469f7c4a469e713a37ea6b86920397168e13.tar.lz re3-9067469f7c4a469e713a37ea6b86920397168e13.tar.xz re3-9067469f7c4a469e713a37ea6b86920397168e13.tar.zst re3-9067469f7c4a469e713a37ea6b86920397168e13.zip |
Diffstat (limited to '')
-rw-r--r-- | src/peds/PedAttactor.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/peds/PedAttactor.cpp b/src/peds/PedAttactor.cpp index a3b93067..0df59b1c 100644 --- a/src/peds/PedAttactor.cpp +++ b/src/peds/PedAttactor.cpp @@ -12,6 +12,8 @@ const int gcMaxSizeOfPizzaQueue = 5; const int gcMaxSizeOfShelterQueue = 5; const int gcMaxSizeOfIceCreamQueue = 1; +//--MIAMI: file done, except TODO(MIAMI) + std::vector<CVector> CPedShelterAttractor::ms_displacements; CPedAttractorManager* GetPedAttractorManager() @@ -163,6 +165,23 @@ CPedAttractor::CPedAttractor(C2dEffect* pEffect, const CMatrix& matrix, int32 ma CPedAttractorManager::ComputeEffectUseDir(pEffect, matrix, vecUseDir); } +void CPedPizzaAttractor::UpdatePedStateOnDeparture(CPed* pPed) const +{ + /* TODO(MIAMI): uncomment + if (pPed->m_nPedMoney > 10) + pPed->m_nPedMoney -= 10; + else + pPed->m_nPedMoney = 0; + */ +} + +void CPedAtmAttractor::UpdatePedStateOnDeparture(CPed* pPed) const +{ + /* TODO(MIAMI): uncomment + pPed->m_nPedMoney += 20 * CGeneral::GetRandomNumberInRange(1, 51); + */ +}; + float CPedAttractor::ComputeDeltaHeading() const { return CGeneral::GetRandomNumberInRange(-m_fMaxHeadingDisplacement, m_fMaxHeadingDisplacement); |