/*-----------------------------------------------------------------------------*/ void MoveKif::AddBranch(Moves* parent, const Moves& moves) { this->branches_.emplace_back(new Moves(moves)); Moves* m = this->branches_.back().get(); m->set_parent(parent); }
/*-----------------------------------------------------------------------------*/ void MoveKif::AddBranch(Moves* parent, const MoveKif& move) { this->branches_.emplace_back(new Moves()); Moves* moves = this->branches_.back().get(); moves->set_parent(parent); moves->push_back(move); }
/*-----------------------------------------------------------------------------*/ Moves* MoveKif::MakeBranch(Moves* parent) { this->branches_.emplace_back(new Moves()); this->current_ = this->branches_.size() - 1; // カレント変えとく Moves* moves = this->branches_.back().get(); moves->set_parent(parent); return moves; }