MCPcopy Create free account
hub / github.com/devosoft/avida / Load_MoveFT

Method Load_MoveFT

avida-core/source/main/cTaskLib.cc:3821–3831  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3819}
3820
3821void cTaskLib::Load_MoveFT(const cString& name, const cString& argstr, cEnvReqs&, Feedback& feedback)
3822{
3823 cArgSchema schema;
3824
3825 schema.AddEntry("target_id", 0, 1);
3826 cArgContainer* args = cArgContainer::Load(argstr, schema, feedback);
3827 if (args) NewTask(name, "MoveFT", &cTaskLib::Task_MoveFT, 0, args);
3828
3829 // Add this target id to the list in the instructions file.
3830 m_world->GetEnvironment().AddTargetID(args->GetInt(0));
3831}
3832
3833double cTaskLib::Task_ConsumeTarget(cTaskContext& ctx) const
3834{

Callers

nothing calls this directly

Calls 3

AddTargetIDMethod · 0.80
GetIntMethod · 0.80
AddEntryMethod · 0.45

Tested by

no test coverage detected