diff options
Diffstat (limited to 'src/T2DLL/T2Settlement.cpp')
| -rw-r--r-- | src/T2DLL/T2Settlement.cpp | 38 | 
1 files changed, 19 insertions, 19 deletions
| diff --git a/src/T2DLL/T2Settlement.cpp b/src/T2DLL/T2Settlement.cpp index 4f84841..30ea8e5 100644 --- a/src/T2DLL/T2Settlement.cpp +++ b/src/T2DLL/T2Settlement.cpp @@ -72,24 +72,24 @@ T2Archive& T2Settlement::Write(T2Archive& archive) const {      archive << m18;      archive << m1C; -    archive << (unsigned int) mDocument->towerDoc_vf178()->GetCount(); -    LArrayIterator theTenantIter(*mDocument->towerDoc_vf178()); +    archive << (unsigned int) mDocument->GetTenantTemplates()->GetCount(); +    LArrayIterator theTenantIter(*mDocument->GetTenantTemplates());      T2TenantDef *theTenantDef = NULL;      while (theTenantIter.Next(&theTenantDef)) {          archive << (short) theTenantDef->GetToolType();          archive << theTenantDef->mSettlement;      } -    archive << (unsigned int) mDocument->towerDoc_vf17C()->GetCount(); -    LArrayIterator theMoverIter(*mDocument->towerDoc_vf17C()); +    archive << (unsigned int) mDocument->GetMoverTemplates()->GetCount(); +    LArrayIterator theMoverIter(*mDocument->GetMoverTemplates());      T2MoverDef *theMoverDef = NULL;      while (theMoverIter.Next(&theMoverDef)) {          archive << (short) theMoverDef->GetToolType();          archive << theMoverDef->mSettlement;      } -    archive << (unsigned int) mDocument->towerDoc_vf180()->GetCount(); -    LArrayIterator theOuterObjIter(*mDocument->towerDoc_vf180()); +    archive << (unsigned int) mDocument->GetOuterObjTemplates()->GetCount(); +    LArrayIterator theOuterObjIter(*mDocument->GetOuterObjTemplates());      T2OuterObjDef *theOuterObjDef = NULL;      while (theOuterObjIter.Next(&theOuterObjDef)) {          archive << (short) theOuterObjDef->GetToolType(); @@ -136,7 +136,7 @@ void T2Settlement::DoPayTool(int funds, short fundGroup, T2ToolDef* inToolDef) {  void T2Settlement::EmitPayToolMessage(T2TowerDoc* towerDoc, T2ToolDef* inToolDef, const CString& str, int length, int type) {      BOOL canPay = true; -    T2DateTime *theNow = towerDoc->towerDoc_vf120(); +    T2DateTime *theNow = towerDoc->GetNow();  #line 197      _ASSERT(theNow != NULL); @@ -226,13 +226,13 @@ T2DateTime* T2Settlement::FindCategoryTimeLimit(T2TowerDoc* inDoc, T2ToolDef* in      switch (theCategory) {          default: -            thePluginList = inDoc->towerDoc_vf178(); +            thePluginList = inDoc->GetTenantTemplates();              break;          case 20: -            thePluginList = inDoc->towerDoc_vf17C(); +            thePluginList = inDoc->GetMoverTemplates();              break;          case 200: -            thePluginList = inDoc->towerDoc_vf180(); +            thePluginList = inDoc->GetOuterObjTemplates();              break;      } @@ -261,13 +261,13 @@ void T2Settlement::LinkCategoryTimeLimit(T2TowerDoc* inDoc, T2ToolDef* inToolDef      switch (theCategory) {          default: -            thePluginList = inDoc->towerDoc_vf178(); +            thePluginList = inDoc->GetTenantTemplates();              break;          case 20: -            thePluginList = inDoc->towerDoc_vf17C(); +            thePluginList = inDoc->GetMoverTemplates();              break;          case 200: -            thePluginList = inDoc->towerDoc_vf180(); +            thePluginList = inDoc->GetOuterObjTemplates();              break;      } @@ -365,7 +365,7 @@ int T2Settlement::GetCategorySettlement(int inCategory) const {      switch (inCategory) {          default:          { -            LArrayIterator theTenantIter(*mDocument->towerDoc_vf178()); +            LArrayIterator theTenantIter(*mDocument->GetTenantTemplates());              T2ToolDef *theTenantDef = NULL;              while (theTenantIter.Next(&theTenantDef)) {                  if (theTenantDef->GetCategory() == inCategory) @@ -375,7 +375,7 @@ int T2Settlement::GetCategorySettlement(int inCategory) const {          }          case 20:          { -            LArrayIterator theMoverIter(*mDocument->towerDoc_vf17C()); +            LArrayIterator theMoverIter(*mDocument->GetMoverTemplates());              T2ToolDef *theMoverDef = NULL;              while (theMoverIter.Next(&theMoverDef)) {                  result += theMoverDef->mSettlement; @@ -384,7 +384,7 @@ int T2Settlement::GetCategorySettlement(int inCategory) const {          }          case 200:          { -            LArrayIterator theOuterObjIter(*mDocument->towerDoc_vf180()); +            LArrayIterator theOuterObjIter(*mDocument->GetOuterObjTemplates());              T2ToolDef *theOuterObjDef = NULL;              while (theOuterObjIter.Next(&theOuterObjDef)) {                  result += theOuterObjDef->mSettlement; @@ -422,19 +422,19 @@ void T2Settlement::Update() {      m18 = 0;      m1C = 0; -    LArrayIterator theTenantIter(*mDocument->towerDoc_vf178()); +    LArrayIterator theTenantIter(*mDocument->GetTenantTemplates());      T2TenantDef *theTenantDef = NULL;      while (theTenantIter.Next(&theTenantDef)) {          theTenantDef->mSettlement = 0;      } -    LArrayIterator theMoverIter(*mDocument->towerDoc_vf17C()); +    LArrayIterator theMoverIter(*mDocument->GetMoverTemplates());      T2MoverDef *theMoverDef = NULL;      while (theMoverIter.Next(&theMoverDef)) {          theMoverDef->mSettlement = 0;      } -    LArrayIterator theOuterObjIter(*mDocument->towerDoc_vf180()); +    LArrayIterator theOuterObjIter(*mDocument->GetOuterObjTemplates());      T2OuterObjDef *theOuterObjDef = NULL;      while (theOuterObjIter.Next(&theOuterObjDef)) {          theOuterObjDef->mSettlement = 0; | 
