[Avida-SVN] r2127 - branches/dkdev/source/main

dknoester at myxo.css.msu.edu dknoester at myxo.css.msu.edu
Fri Oct 5 12:02:13 PDT 2007


Author: dknoester
Date: 2007-10-05 15:02:06 -0400 (Fri, 05 Oct 2007)
New Revision: 2127

Modified:
   branches/dkdev/source/main/cTaskLib.cc
Log:
Bugfixes to task definitions for region detection.

Modified: branches/dkdev/source/main/cTaskLib.cc
===================================================================
--- branches/dkdev/source/main/cTaskLib.cc	2007-10-05 18:23:03 UTC (rev 2126)
+++ branches/dkdev/source/main/cTaskLib.cc	2007-10-05 19:02:06 UTC (rev 2127)
@@ -337,13 +337,13 @@
   else if(name == "bottom-half")
     NewTask(name, "Determined whether in the bottom half of the environment", &cTaskLib::Task_BottomHalf);
   else if(name == "top-forward-diag")
-    NewTask(name, "Determined whether in the top forward diagonal region of the environment", &cTaskLib::Task_BottomHalf);
+    NewTask(name, "Determined whether in the top forward diagonal region of the environment", &cTaskLib::Task_TopForwardDiagonal);
   else if(name == "bottom-forward-diag")
-    NewTask(name, "Determined whether in the bottom forward diagonal region of the environment", &cTaskLib::Task_BottomHalf);
+    NewTask(name, "Determined whether in the bottom forward diagonal region of the environment", &cTaskLib::Task_BottomForwardDiagonal);
   else if(name == "top-backward-diag")
-    NewTask(name, "Determined whether in the top backward diagonal region of the environment", &cTaskLib::Task_BottomHalf);
+    NewTask(name, "Determined whether in the top backward diagonal region of the environment", &cTaskLib::Task_TopBackwardDiagonal);
   else if(name == "bottom-backward-diag")
-    NewTask(name, "Determined whether in the bottom backward diagonal region of the environment", &cTaskLib::Task_BottomHalf);
+    NewTask(name, "Determined whether in the bottom backward diagonal region of the environment", &cTaskLib::Task_BottomBackwardDiagonal);
   
   
   // Make sure we have actually found a task  
@@ -2023,6 +2023,7 @@
 
 
 double cTaskLib::Task_TopBackwardDiagonal(cTaskContext* ctx) const {
+  assert(false); // incomplete
   cOrganism* organism = ctx->GetOrganism();
   
   // Did the organism even make a decision?
@@ -2039,6 +2040,7 @@
 
 
 double cTaskLib::Task_BottomBackwardDiagonal(cTaskContext* ctx) const {
+  assert(false); // incomplete.
   cOrganism* organism = ctx->GetOrganism();
   
   // Did the organism even make a decision?




More information about the Avida-cvs mailing list