-
Notifications
You must be signed in to change notification settings - Fork 5
/
bot_info.lua
34 lines (25 loc) · 910 Bytes
/
bot_info.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
-------------------------------------------------------------------------------
--- AUTHOR: Nostrademous, iSarCasm
--- GITHUB REPO: https://github.com/Nostrademous/Dota2-WebAI
-------------------------------------------------------------------------------
local MapHelper = require(GetScriptDirectory().."/helper/map_helper")
local UnitHelper = require(GetScriptDirectory().."/helper/unit_helper")
--------------------------------------------------------
local BotInfo = {}
--------------------------------------------------------
function BotInfo:new(o)
o = o or {}
setmetatable(o, self)
self.__index = self
return o
end
function BotInfo:Init(lane, role)
self.LANE = lane
self.ROLE = role
self.lastHealth = 0
self.health = 0
self.lastHealthCapture = DotaTime()
self.healthDelta = 0
end
--------------------------------------------------------
return BotInfo