simplechatgameuser.cpp 440 B

1234567891011121314151617181920212223
  1. #include "simplechatgameuser.h"
  2. simplechatgameuser::simplechatgameuser()
  3. {
  4. client = nullptr;
  5. username = nullptr;
  6. userdata = nullptr;
  7. }
  8. simplechatgameuser::~simplechatgameuser()
  9. {
  10. client = nullptr;
  11. idisposable::dereference((idisposable **)&username);
  12. idisposable::dereference((idisposable **)&userdata);
  13. }
  14. void simplechatgameuser::dispose()
  15. {
  16. delete this;
  17. }
  18. simplechatgameuser *simplechatgameuser::clone()
  19. {
  20. usage++;
  21. return this;
  22. }