Beispiel #1
0
/*-----------------------------------------------------------------------------*/
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);
}
Beispiel #2
0
/*-----------------------------------------------------------------------------*/
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);
}
Beispiel #3
0
/*-----------------------------------------------------------------------------*/
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;
}