UserBaseInfo.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <?php
  2. /*
  3. * To change this license header, choose License Headers in Project Properties.
  4. * To change this template file, choose Tools | Templates
  5. * and open the template in the editor.
  6. */
  7. namespace loyalsoft;
  8. /**
  9. * Description of UserBaseInfo
  10. *
  11. * @author Administrator
  12. */
  13. class UserBaseInfo {
  14. //put your code here
  15. /**
  16. * 第一次登录时间
  17. * @var int
  18. */
  19. public $firstLogin;
  20. /**
  21. * 上次登录时间
  22. * @var int
  23. */
  24. public $lastLogin;
  25. /**
  26. * 上次活动时间
  27. * @var int
  28. */
  29. public $lastSaveTs;
  30. /**
  31. * @var int 当前等级
  32. */
  33. public $level; //
  34. /**
  35. * @var string 昵称
  36. */
  37. public $name; // 昵称
  38. /**
  39. * @var string 头像
  40. */
  41. public $headImg; // 头像
  42. /**
  43. * @var int 头像框Id
  44. */
  45. public $imgBorderId = 0;
  46. /**
  47. * @var string 形象(龙骨)
  48. */
  49. public $img;
  50. /**
  51. * @var int 金币
  52. */
  53. public $gold; // 金币
  54. /**
  55. * 钻石
  56. * @var int
  57. */
  58. public $cash; //
  59. /**
  60. * 分解后得倒的晶石
  61. * @var int
  62. */
  63. public $spar;
  64. /**
  65. * 体力值
  66. * @var int
  67. */
  68. public $tili = 120; //体力
  69. /**
  70. * 当前经验
  71. */
  72. public $xp = 0;
  73. /**
  74. * 升级经验
  75. * @var type
  76. */
  77. public $maxXp = 0;
  78. /**
  79. * @var int 好友赠送友情点数
  80. */
  81. public $friendPoint = 0;
  82. /**
  83. * @var int 历史充值总金额(单位:分)
  84. */
  85. public $charge_amt = 0; //
  86. /**
  87. * @var int 游戏内赠送游戏币总额
  88. */
  89. public $gift_cash = 0; //
  90. public function initialize() {
  91. my_Assert(GameConfig::primordial_data(), "找不到账号初始化数据"); # 防御
  92. $this->gold = GameConfig::primordial_data()->User_Gold;
  93. $this->cash = GameConfig::primordial_data()->User_Cash;
  94. $this->xp = GameConfig::primordial_data()->User_XP;
  95. $this->maxXp = 0;
  96. $this->level = 1;
  97. $this->name = '步惊云';
  98. $this->spar = 0;
  99. $this->headImg = GameConfig::primordial_data()->User_img;
  100. }
  101. }