[Avida-SVN] r1566 - development/source/actions
jclune at myxo.css.msu.edu
jclune at myxo.css.msu.edu
Thu May 17 05:28:14 PDT 2007
Author: jclune
Date: 2007-05-17 08:28:14 -0400 (Thu, 17 May 2007)
New Revision: 1566
Modified:
development/source/actions/PopulationActions.cc
Log:
cleanup of my fitness valley toggle events
Modified: development/source/actions/PopulationActions.cc
===================================================================
--- development/source/actions/PopulationActions.cc 2007-05-16 21:24:10 UTC (rev 1565)
+++ development/source/actions/PopulationActions.cc 2007-05-17 12:28:14 UTC (rev 1566)
@@ -542,13 +542,9 @@
{
private:
public:
- cActionToggleRewardInstruction(cWorld* world, const cString& args) : cAction(world, args)
- {
- //pass
- //@JMC: m_killprob (and other code) is a meme that hitchiked when I used gabe's event as an example. need to clean it up.
- }
+ cActionToggleRewardInstruction(cWorld* world, const cString& args) : cAction(world, args) {}
- static const cString GetDescription() { return "Arguments: [double probability=0.9]"; }
+ static const cString GetDescription() { return "No Arguments"; }
void Process(cAvidaContext& ctx)
{
@@ -570,19 +566,14 @@
{
private:
public:
- cActionToggleFitnessValley(cWorld* world, const cString& args) : cAction(world, args)
- {
- //pass
- //@JMC: m_killprob (and other code) is a meme that hitchiked when I used gabe's event as an example. need to clean it up.
- }
+ cActionToggleFitnessValley(cWorld* world, const cString& args) : cAction(world, args) {}
- static const cString GetDescription() { return "Arguments: [double probability=0.9]"; }
+ static const cString GetDescription() { return "No Arguments"; }
void Process(cAvidaContext& ctx)
{
if(m_world->GetConfig().FITNESS_VALLEY.Get()) {m_world->GetConfig().FITNESS_VALLEY.Set(0);}
else{m_world->GetConfig().FITNESS_VALLEY.Set(1);}
-// m_world->GetConfig().FITNESS_VALLEY.Set(-1* m_world->GetConfig().FITNESS_VALLEY.Get());
}
};
More information about the Avida-cvs
mailing list