UserGateDifficulty.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. namespace loyalsoft;
  3. /**
  4. * 玩家关卡数据 extends Object
  5. * @version
  6. * 1.0.0 Created at 2017-2-14. by --gwang
  7. * @author gwang (mail@wanggangzero.cn)
  8. * @copyright ? 2017-2-14, SJZ LoyalSoft Corporation & gwang. All rights reserved.
  9. */
  10. class UserGateDifficulty extends Object_ext {
  11. ///目前是按关卡的难度来分的结果
  12. /**
  13. * 普通关卡
  14. */
  15. public $normal;
  16. /**
  17. * 困难关卡
  18. */
  19. public $hard;
  20. /**
  21. * 精英关卡
  22. */
  23. public $elite;
  24. /**
  25. * 战斗总次数
  26. */
  27. public $TotalNum;
  28. /**
  29. * 当天战斗的次数
  30. */
  31. public $Times;
  32. /**
  33. * 已经消灭的bossid集合
  34. * @var array
  35. */
  36. public $killedBoss;
  37. function __construct($arg = null) {
  38. if (null === $arg) {
  39. $this->TotalNum = 0;
  40. $this->Times = 0;
  41. $this->normal = new UserGatesModel();
  42. $this->normal->initialize();
  43. $this->hard = new UserGatesModel;
  44. $this->hard->initialize();
  45. $this->elite = new UserGatesModel;
  46. $this->elite->initialize();
  47. $this->killedBoss = ArrayInit();
  48. } else {
  49. parent::__construct($arg);
  50. }
  51. }
  52. }