[Avida-SVN] r2801 - in branches/hjg-dev/source: cpu main
hjg at myxo.css.msu.edu
hjg at myxo.css.msu.edu
Sun Sep 28 09:17:14 PDT 2008
Author: hjg
Date: 2008-09-28 12:17:13 -0400 (Sun, 28 Sep 2008)
New Revision: 2801
Modified:
branches/hjg-dev/source/cpu/cHardwareCPU.cc
branches/hjg-dev/source/main/cOrganism.h
Log:
added additional self raw materials
Modified: branches/hjg-dev/source/cpu/cHardwareCPU.cc
===================================================================
--- branches/hjg-dev/source/cpu/cHardwareCPU.cc 2008-09-28 05:44:26 UTC (rev 2800)
+++ branches/hjg-dev/source/cpu/cHardwareCPU.cc 2008-09-28 16:17:13 UTC (rev 2801)
@@ -6690,6 +6690,10 @@
// fails if the organism does not have any more resources
if (organism->SubtractSelfRawMaterials(1)) {
neighbor->AddOtherRawMaterials(1);
+
+ // rotate recipient to face donor
+// organism->GetWorld()->GetPopulation().GetCell(organism->GetCellID()).ConnectionList().Front().ConnectionList().Rotate(...)
+
}
isSuccessful = true;
}
Modified: branches/hjg-dev/source/main/cOrganism.h
===================================================================
--- branches/hjg-dev/source/main/cOrganism.h 2008-09-28 05:44:26 UTC (rev 2800)
+++ branches/hjg-dev/source/main/cOrganism.h 2008-09-28 16:17:13 UTC (rev 2801)
@@ -454,7 +454,7 @@
protected:
// Initialize reputation support
- inline void InitReputation() {if (!m_self_raw_materials) {m_self_raw_materials = 10; m_other_raw_materials =0; }}
+ inline void InitReputation() {if (!m_self_raw_materials) {m_self_raw_materials = 100; m_other_raw_materials =0; }}
// The organism's own raw materials
int m_self_raw_materials;
// The raw materials an oranism has collected from others
More information about the Avida-cvs
mailing list