class A4PlayerCharacter extends A4AICharacter { constructor(name:string, sort:Sort) { super(name, sort); } loadObjectAttribute(attribute_xml:Element) : boolean { if (super.loadObjectAttribute(attribute_xml)) return true; // This function is just so that we can reuse object class definitions between Players and AI characters. let a_name:string = attribute_xml.getAttribute("name"); if (a_name == "sightRadius") { return true; } else if (a_name == "respawn") { return true; } else if (a_name == "AI.period") { return true; } else if (a_name == "AI.cycle") { return true; } else if (a_name == "respawnRecordID") { return true; } return false; } isPlayer() : boolean { return true; } nextItem() { for(let i:number = 0;i