botevents.c 835 B

12345678910111213141516171819202122232425262728293031323334
  1. /**@class BotEventBase
  2. * @brief represents event that triggers transition from state to state
  3. **/
  4. class BotEventBase
  5. {
  6. PlayerBase m_Player;
  7. EntityAI m_Entity;
  8. void BotEventBase (PlayerBase p = NULL, EntityAI e = NULL) { m_Entity = e; }
  9. string DumpToString () {}
  10. };
  11. //class BotEventXXX : BotEventBase { void BotEventXXX (PlayerBase p = NULL) { } };
  12. class BotEventStart : BotEventBase { };
  13. class BotEventStop : BotEventBase { };
  14. class BotEventEndOK : BotEventBase { };
  15. class BotEventEndFail : BotEventBase { };
  16. class BotEventEndTimeout : BotEventBase { };
  17. class BotEventOnItemInHandsChanged : BotEventBase { };
  18. class BotEventStartDebug : BotEventBase
  19. {
  20. int m_Id;
  21. void BotEventStartDebug(PlayerBase p = NULL, EntityAI e = NULL, int id = 0)
  22. {
  23. m_Id = id;
  24. }
  25. override string DumpToString () { return "id: " + m_Id; }
  26. };