@Override
    public void createFromXML(NodeList attributes) {
        Node node = attributes.item(0);
        while(node != null) {
            GameActor a = null;
            float X = 0;
            float Y = 0;
            if(node.getNodeType() == Node.ELEMENT_NODE && node.getNodeName().equalsIgnoreCase("actor")) {
                Node n = node.getFirstChild();
                while(n != null) {
                    if(n.getNodeType() == Node.ELEMENT_NODE) {
                        if(n.getNodeName().equalsIgnoreCase("Resource")) {
                            a = Application.get().getLogic().createActor(n.getFirstChild().getNodeValue());
                        }
                        if(n.getNodeName().equalsIgnoreCase("x")) {
                            X = Float.parseFloat(n.getFirstChild().getNodeValue());
                        }
                        if(n.getNodeName().equalsIgnoreCase("y")) {
                            Y = Float.parseFloat(n.getFirstChild().getNodeValue());
                        }
                    }
                    n = n.getNextSibling();
                }
                PhysicsComponent pc = (PhysicsComponent)a.getComponent("PhysicsComponent");
                PhysicsComponent oPC = (PhysicsComponent)owner.getComponent("PhysicsComponent");
                pc.setZ(oPC.getZ()+1);
                actors.add(new ActorSlot(a, X, Y));
            }
            node = node.getNextSibling();
        }
    }