@Override
    public void createFromXML(NodeList attributes) {
        for(int i = 0; i < attributes.getLength(); i++) {
            Node node = attributes.item(i);
            if(node.getNodeType() == Node.ELEMENT_NODE) {
                if(node.getNodeName().equalsIgnoreCase("EnemyBasic")) {
                    ai = new EnemyBasicAI(owner.getID());
                }
                else if(node.getNodeName().equalsIgnoreCase("HumanBasicWeapon")) {
                    ai = new HumanBasicWeaponAI(owner.getID());
                }
                else if(node.getNodeName().equalsIgnoreCase("HumanAutomaticWeapon")) {
                    ai = new HumanAutomaticWeaponAI(owner.getID());
                }
                else if(node.getNodeName().equalsIgnoreCase("EnemyBoss")) {
                    ai = new EnemyBossAI(owner.getID());
                }
                else if(node.getNodeName().equalsIgnoreCase("EnemySlave")) {
                    ai = new EnemySlaveAI(owner.getID());
                }
                
                ai.createFromXML(node.getChildNodes());
            }
        }
    }