mirror of
https://github.com/Qsgs-Fans/FreeKill.git
synced 2024-11-16 03:32:34 +08:00
509cf29175
* global distance skill * normal distance skill * remove addGeneral from init.lua * fixed distance
16 lines
456 B
Lua
16 lines
456 B
Lua
---@class ClientPlayer: Player
|
|
---@field player fk.Player
|
|
---@field known_cards integer[]
|
|
---@field global_known_cards integer[]
|
|
local ClientPlayer = Player:subclass("ClientPlayer")
|
|
|
|
function ClientPlayer:initialize(cp)
|
|
Player.initialize(self)
|
|
self.id = cp:getId()
|
|
self.player = cp
|
|
self.known_cards = {} -- you know he/she have this card, but not shown
|
|
self.global_known_cards = {} -- card that visible to all players
|
|
end
|
|
|
|
return ClientPlayer
|