Object:addExtraAction()
Type: Function
Overview

Allows to extend basic functionality and add additional functionality to the behavior of an AI object.
Examples

Add additional functionality to the enemy object
local newAI = require('classes.SimpleAI').newAI
-- enemy instance
local enemy = newAI({group = mainGroup, img = "snailWalk1.png", x = halfW-50, y = display.contentHeight-500, ai_type = "boss"}) 
-- add additional functionality to the enemy object 
function enemy:addExtraAction()
 print("test extra action") -- will print debug text in output
 enemy.x = enemy.x + 1 -- will move enemy object to the right direction
end