--
-- self
-- Class for all self
--
-- @author  Mario
-- @date  25/04/10
--
-- Copyright (C) Mario

starfire = {};

function starfire.prerequisitesPresent(specializations)
    return SpecializationUtil.hasSpecialization(Motorized, specializations);
end;

function starfire:load(xmlFile)

    self.starfire = {};
    self.starfire[1] = Utils.indexToObject(self.rootNode, getXMLString(xmlFile, "vehicle.starfire.starfire1#index"));
    self.starfire[2] = Utils.indexToObject(self.rootNode, getXMLString(xmlFile, "vehicle.starfire.starfire2#index"));

end;

function starfire:keyEvent(unicode, sym, modifier, isDown)

    if isDown and sym == Input.KEY_F9 then 
		self.drawstarfire = not self.drawstarfire;
		setVisibility(self.starfire[1], self.drawstarfire);
    	setVisibility(self.starfire[2], self.drawstarfire);
	end;

end;


function starfire:update(dt)
end;

function starfire:draw()
end;

function starfire:onEnter()

end;

function starfire:onLeave()
end;

function starfire:delete()
end;

function starfire:mouseEvent(posX, posY, isDown, isUp, button)
end;