/TGame/TCommon/Event/EvtRaw.cpp

http://awoe.googlecode.com/ · C++ · 88 lines · 63 code · 18 blank · 7 comment · 0 complexity · e9933b557544a26b9197e397f8bda619 MD5 · raw file

  1. ///////////////////////////////////////////////////////////////////////////////////////////////////
  2. // EvtRaw.cpp
  3. // 2010?1?22?
  4. // Copyright ?2007, 2010, 8DWorld, Inc. All rights reserved.
  5. //
  6. //
  7. ///////////////////////////////////////////////////////////////////////////////////////////////////
  8. #include "stdafx.h"
  9. #include "EvtRaw.h"
  10. EvtRaw::EvtRaw(int nGrpID, int nID)
  11. :m_nGrp(nGrpID),
  12. m_nID(nID)
  13. {;}
  14. EvtRaw::EvtRaw()
  15. :m_nGrp(0),
  16. m_nID(0)
  17. {;}
  18. void
  19. EvtRaw::setID(int nID)
  20. {
  21. m_nID = nID;
  22. }
  23. int
  24. EvtRaw::getID()const
  25. {
  26. return m_nID;
  27. }
  28. void
  29. EvtRaw::setGroupID(int nGrpID)
  30. {
  31. m_nGrp = nGrpID;
  32. }
  33. int
  34. EvtRaw::getGroupID()const
  35. {
  36. return m_nGrp;
  37. }
  38. int EvtRaw::getDataX()const
  39. {
  40. return 0;
  41. }
  42. int EvtRaw::getDataY()const
  43. {
  44. return 0;
  45. }
  46. int EvtRaw::getDataZ()const
  47. {
  48. return 0;
  49. }
  50. void EvtRaw::setDataX(int nArg)
  51. {
  52. }
  53. void EvtRaw::setDataY(int nArg)
  54. {
  55. }
  56. void EvtRaw::setDataZ(int nArg)
  57. {
  58. }
  59. int EvtRaw::getData(const short& nIdx, int nDefault)const
  60. {
  61. return nDefault;
  62. }
  63. void EvtRaw::setData(const short& nIdx, int nValue)
  64. {
  65. }
  66. IEvt*
  67. EvtRaw::clone()
  68. {
  69. return NULL;
  70. }