add combat controls

This commit is contained in:
Eduardo Bart
2012-02-07 21:06:52 -02:00
parent e51789378a
commit ee1357a848
21 changed files with 293 additions and 8 deletions

View File

@@ -309,3 +309,11 @@ SpeakChannelRed = 11
SpeakChannelOrange = 12
SpeakMonsterSay = 13
SpeakMonsterYell = 14
FightOffensive = 1
FightBalanced = 2
FightDefensive = 3
DontChase = 0
ChaseOpponent = 1

View File

@@ -51,6 +51,11 @@ function displayUI(arg1, options)
return widget
end
function loadUI(otui, parent)
local otuiFilePath = resolvepath(otui, 2)
return g_ui.loadUI(otuiFilePath, parent)
end
function createWidget(style, parent)
local className = g_ui.getStyleClass(style)
if className == "" then

View File

@@ -57,6 +57,19 @@ function disconnect(object, signalsAndSlots)
end
end
function newclass()
local class = {}
function class.internalCreate()
local instance = {}
for k,v in pairs(class) do
instance[k] = v
end
return instance
end
class.create = class.internalCreate
return class
end
function extends(base)
local derived = {}
function derived.internalCreate()