Reward organisms for having found a targeted resource + performing logic*/
| 3742 | |
| 3743 | /* Reward organisms for having found a targeted resource + performing logic*/ |
| 3744 | void cTaskLib::Load_ConsumeTargetOrn(const cString& name, const cString& argstr, cEnvReqs&, Feedback& feedback) |
| 3745 | { |
| 3746 | cArgSchema schema; |
| 3747 | |
| 3748 | schema.AddEntry("target_id", 0, 1); |
| 3749 | cArgContainer* args = cArgContainer::Load(argstr, schema, feedback); |
| 3750 | if (args) NewTask(name, "ConsumeTargetOrn", &cTaskLib::Task_ConsumeTargetOrn, 0, args); |
| 3751 | |
| 3752 | // Add this target id to the list in the instructions file. |
| 3753 | m_world->GetEnvironment().AddTargetID(args->GetInt(0)); |
| 3754 | } |
| 3755 | |
| 3756 | /* Reward organisms for having found a targeted resource + performing logic*/ |
| 3757 | void cTaskLib::Load_ConsumeTargetOr(const cString& name, const cString& argstr, cEnvReqs&, Feedback& feedback) |
nothing calls this directly
no test coverage detected