MCPcopy Create free account
hub / github.com/THUDM/AgentTuning / sync

Method sync

AgentBench.old/src/tasks/card_game/logic/src/fish.cpp:1183–1196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1181}
1182
1183void Imitator::sync() {
1184 hp = avatar->hp;
1185 max_hp = avatar->max_hp;
1186 wound = avatar->wound;
1187 special_usage = avatar->special_usage;
1188 shell = avatar->shell;
1189 atk = avatar->atk;
1190 def = avatar->def;
1191 pos = avatar->pos;
1192 state = avatar->state;
1193 is_expose = avatar->is_expose;
1194 buff = avatar->buff; // 被动效果
1195 error_type = avatar->error_type;
1196}
1197
1198opt Imitator::special(Fish* self, std::vector<Fish*> target, int type) {
1199 return J();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected