41 lines
855 B
Lua
41 lines
855 B
Lua
---
|
|
--- Created by 谌建军.
|
|
--- DateTime: 2017/12/13 16:35
|
|
---
|
|
local ExPlayerPokerInfoView = {
|
|
_view = nil,
|
|
_mainView = nil,
|
|
_mask_liangpai = nil,
|
|
}
|
|
|
|
local M = ExPlayerPokerInfoView
|
|
|
|
function M.new(view, mainView)
|
|
local self = {}
|
|
setmetatable(self, { __index = M })
|
|
self._view = view
|
|
self._mainView = mainView
|
|
self:init()
|
|
return self
|
|
end
|
|
|
|
function M:init()
|
|
local view = self._view
|
|
self._gameCtr = ControllerManager.GetController(GameController)
|
|
end
|
|
|
|
function M:Clear()
|
|
self:PlayScore(nil)
|
|
self:SetRemainCardNumber(false)
|
|
self:SetOutCardInfo(nil, false)
|
|
self.hand_card_list:RemoveChildren(0, -1, true)
|
|
self._mask_liangpai:RemoveChildren(0, -1, true)
|
|
self._view_Out:RemoveChildren(0, -1, true)
|
|
self._view_resultOut:RemoveChildren(0, -1, true)
|
|
end
|
|
|
|
function M:Destroy()
|
|
end
|
|
|
|
return M
|