BWAPI
SPAR/AIModule/SparAIModuleDLL/Instantiate.h
Go to the documentation of this file.
00001 #pragma once
00002 #include <SparAIModule.h>
00003 #ifdef USE_SPAR_GUI
00004   #include <SparQtGui.h>
00005 #endif
00006 
00007 template <class S1, class S2, class S3, class S4, class D1, class D2, class D3, class D4>
00008 SparAIModule<S1, S2, S3, S4, D1, D2, D3, D4>* instantiate()
00009 {
00010   SparAIModule<S1, S2, S3, S4, D1, D2, D3, D4>* spar = new SparAIModule<S1, S2, S3, S4, D1, D2, D3, D4>();
00011 #ifdef USE_SPAR_GUI
00012   spar->addObserver(new SparQtGUI<S1, S2, S3, S4, D1, D2, D3, D4>(spar));
00013 #endif
00014   return spar;
00015 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines