1-- Copyright (C) 2007, 2010 - Bit-Blot 2-- 3-- This file is part of Aquaria. 4-- 5-- Aquaria is free software; you can redistribute it and/or 6-- modify it under the terms of the GNU General Public License 7-- as published by the Free Software Foundation; either version 2 8-- of the License, or (at your option) any later version. 9-- 10-- This program is distributed in the hope that it will be useful, 11-- but WITHOUT ANY WARRANTY; without even the implied warranty of 12-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13-- 14-- See the GNU General Public License for more details. 15-- 16-- You should have received a copy of the GNU General Public License 17-- along with this program; if not, write to the Free Software 18-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 20if not v then v = {} end 21if not AQUARIA_VERSION then dofile("scripts/entities/entityinclude.lua") end 22 23v.n = 0 24 25function init(me) 26 setupEntity(me) 27 --entity_setEntityLayer(me, 1) 28 entity_setEntityType(me, ET_NEUTRAL) 29 entity_initSkeletal(me, "cc_father") 30 entity_setAllDamageTargets(me, false) 31 32 entity_setState(me, STATE_IDLE) 33 34 entity_scale(me, 0.5, 0.5) 35end 36 37function postInit(me) 38 v.n = getNaija() 39 entity_setTarget(me, v.n) 40end 41 42function update(me, dt) 43end 44 45function enterState(me) 46 if entity_isState(me, STATE_IDLE) then 47 entity_animate(me, "idle", -1) 48 end 49end 50 51function exitState(me) 52end 53 54function damage(me, attacker, bone, damageType, dmg) 55 return false 56end 57 58function animationKey(me, key) 59end 60 61function hitSurface(me) 62end 63 64function songNote(me, note) 65end 66 67function songNoteDone(me, note) 68end 69 70function song(me, song) 71end 72 73function activate(me) 74end 75 76