@Override
    public void createFromXML(NodeList attributes) {
        //weapon = new SpermGun(owner.getID()); // default weapons, for now atleast...
        for(int i = 0; i < attributes.getLength(); i++) {
            Node node = attributes.item(i);
            
            if(node.getNodeType() == Node.ELEMENT_NODE) {
                Node value = node.getFirstChild();
                if(node.getNodeName().equalsIgnoreCase("rateOfFire")) {
                    rateOfFire = Integer.parseInt(value.getNodeValue());
                    timeSinceLastShot = rateOfFire-1;
                }
                else if(node.getNodeName().equalsIgnoreCase("damage")) {
                    damage = Integer.parseInt(value.getNodeValue());
                }
                else if(node.getNodeName().equalsIgnoreCase("bullet")) {
                    bullet = value.getNodeValue();
                }
                else if(node.getNodeName().equals("weapon")) {
                    createWeapon(node);
                }
            }
        }
    }