UserGateDifficulty.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. */
  16. public $normal;
  17. /**
  18. * 困难关卡
  19. */
  20. public $hard;
  21. /**
  22. * 精英关卡
  23. */
  24. public $elite;
  25. /**
  26. * 战斗总次数
  27. */
  28. public $TotalNum;
  29. /**
  30. * 当天战斗的次数
  31. */
  32. public $Times;
  33. /**
  34. * 已经消灭的bossid集合
  35. * @var array
  36. */
  37. public $killedBoss;
  38. /**
  39. * @var userCarbonModel 关卡副本数据
  40. */
  41. public $carbons;
  42. function __construct($arg = null)
  43. {
  44. if (null === $arg) {
  45. $this->TotalNum = 0;
  46. $this->Times = 0;
  47. $this->normal = new UserGatesModel();
  48. $this->normal->initialize();
  49. $this->hard = new UserGatesModel;
  50. $this->hard->initialize();
  51. $this->elite = new UserGatesModel;
  52. $this->elite->initialize();
  53. $this->killedBoss = ArrayInit();
  54. $this->carbons = new UserCarbonModel;
  55. $this->carbons->initialize();
  56. } else {
  57. parent::__construct($arg);
  58. }
  59. }
  60. }