FreeKill/lua/lsp/server.lua
notify 9ac89caa1f Random AI (#54)
* android: dont copy RSA key and test.lua(generated by fkp)

* remove debug code

* ai think

* fixbug: 100% cpu per thread

* init ai

* fix bug, next step is to remove all feasible

* remame vscode -> lsp

* add some lsp comment

* rewrite feasible

* Random AI

* fixbug: chooseplayer

* liuli

* move checkNoHuman to waitForAiReply

* prototype for cardLimitation skill

* add Exppattern:Parse to static.lua

* remove unnecessary static
2023-02-26 15:01:14 +08:00

51 lines
1.1 KiB
Lua

---@meta
---@class fk.Server
FServer = {}
---@type fk.Server
fk.ServerInstance = {}
---@class fk.Room
--- Room (C++)
FRoom = {}
---@param owner fk.ServerPlayer
---@param name string
---@param capacity integer
function FServer:createRoom(owner,name,capacity)end
---@param id integer
---@return fk.Room
function FServer:findRoom(id)end
---@return fk.Room
function FServer:lobby()end
---@param id integer
---@return fk.ServerPlayer
function FServer:findPlayer(id)end
---@return fk.SQLite3
function FServer:getDatabase()end
function FRoom:getServer()end
function FRoom:getId()end
function FRoom:isLobby()end
function FRoom:getName()end
function FRoom:setName(name)end
function FRoom:getCapacity()end
function FRoom:setCapacity(capacity)end
function FRoom:isFull()end
function FRoom:isAbandoned()end
function FRoom:addPlayer(player)end
function FRoom:removePlayer(player)end
function FRoom:getOwner()end
function FRoom:setOwner(owner)end
function FRoom:getPlayers()end
function FRoom:findPlayer(id)end
function FRoom:getTimeout()end
function FRoom:isStarted()end
function FRoom:doBroadcastNotify(targets,command,jsonData)end
function FRoom:gameOver()end