CEmptyAI.cpp 444 B

1234567891011121314151617181920212223
  1. #include "CEmptyAI.h"
  2. #include <iostream>
  3. void CEmptyAI::init(ICallback * CB)
  4. {
  5. cb = CB;
  6. human=false;
  7. playerID=cb->getMyColor();
  8. serialID=cb->getMySerial();
  9. std::cout << "EmptyAI initialized." << std::endl;
  10. }
  11. void CEmptyAI::yourTurn()
  12. {
  13. cb->endTurn();
  14. }
  15. void CEmptyAI::heroKilled(const CGHeroInstance *)
  16. {
  17. }
  18. void CEmptyAI::heroCreated(const CGHeroInstance *)
  19. {
  20. }
  21. void CEmptyAI::heroMoved(const HeroMoveDetails &)
  22. {
  23. }