Example #1
0
File: Goals.cpp Project: szpak/vcmi
void CGoal<T>::accept (VCAI * ai)
{
	ai->tryRealize(static_cast<T&>(*this)); //casting enforces template instantiation
}
Example #2
0
File: Goals.cpp Project: szpak/vcmi
void AbstractGoal::accept (VCAI * ai)
{
	ai->tryRealize(*this);
}