/TGame/TCommon/Entity/EntityVisitorImp.cpp

http://awoe.googlecode.com/ · C++ · 52 lines · 30 code · 9 blank · 13 comment · 0 complexity · fd5d96963113dd6243341bedbd37952d MD5 · raw file

  1. #include "stdafx.h"
  2. #include "EntityVisitorImp.h"
  3. //
  4. // visit player entity
  5. bool EntityVisitorImp::visitP(EntityP& e)
  6. {
  7. return true;
  8. }
  9. //
  10. // visit role entity
  11. bool EntityVisitorImp::visitR(EntityR& e)
  12. {
  13. return true;
  14. }
  15. //
  16. // visit monster entity
  17. bool EntityVisitorImp::visitM(EntityM& e)
  18. {
  19. return true;
  20. }
  21. //
  22. // visit destructible entity
  23. bool EntityVisitorImp::visitD(EntityD& e)
  24. {
  25. return true;
  26. }
  27. //
  28. // visit static entity
  29. bool EntityVisitorImp::visitS(EntityS& e)
  30. {
  31. return true;
  32. }
  33. //
  34. // visit NPC entity
  35. bool EntityVisitorImp::visitN(EntityN& e)
  36. {
  37. return true;
  38. }
  39. // visit other entity
  40. bool EntityVisitorImp::visit(EntityImp& e)
  41. {
  42. return true;
  43. }