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

tafeln = {};

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

function tafeln:load(xmlFile)

    self.tafeln = {};
    self.tafeln[1] = Utils.indexToObject(self.rootNode, getXMLString(xmlFile, "vehicle.tafeln.tafeln1#index"));
    self.tafeln[2] = Utils.indexToObject(self.rootNode, getXMLString(xmlFile, "vehicle.tafeln.tafeln2#index"));

end;

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

    if isDown and sym == Input.KEY_u then 
		self.drawtafeln = not self.drawtafeln;
		setVisibility(self.tafeln[1], self.drawtafeln);
    	setVisibility(self.tafeln[2], self.drawtafeln);
	end;

end;


function tafeln:update(dt)
end;

function tafeln:draw()
end;

function tafeln:onEnter()

end;

function tafeln:onLeave()
end;

function tafeln:delete()
end;

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