mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-27 03:53:33 +00:00
47 lines
584 B
Lua
47 lines
584 B
Lua
Player = {
|
|
refineds = 0,
|
|
wealth = 0,
|
|
research = 0,
|
|
faction = -1,
|
|
difficulty = -1,
|
|
team = -1,
|
|
units = {}
|
|
}
|
|
|
|
function Player:new(pl)
|
|
player = pl or {}
|
|
self.__index = self
|
|
setmetatable(player, self)
|
|
return player
|
|
end
|
|
|
|
function Player:foo1()
|
|
print('foo 1')
|
|
return true
|
|
end
|
|
|
|
function Player:foo2()
|
|
print('foo 2')
|
|
return true
|
|
end
|
|
|
|
function Player:foo3()
|
|
print('foo 3')
|
|
return true
|
|
end
|
|
|
|
function Player:foo4()
|
|
print('foo 4')
|
|
return true
|
|
end
|
|
|
|
function Player:update()
|
|
executeBtNode(self.behaviour)
|
|
end
|
|
|
|
Player.behaviour = {
|
|
type = BTNodeType.SEQUENCE,
|
|
children = {
|
|
}
|
|
}
|