/** * Creates a new instance of TF2Engineer based on the assigned XML data * @param $classData */ public function __construct($classData) { parent::__construct($classData); $this->maxBuildingsBuilt = (int) $classData->ibuildingsbuilt; $this->maxTeleports = (int) $classData->inumteleports; $this->maxSentryKills = (int) $classData->isentrykills; }
/** * Creates a new instance of the Spy class based on the given XML data * * @param SimpleXMLElement $classData The XML data for this Spy */ public function __construct(SimpleXMLElement $classData) { parent::__construct($classData); $this->maxBackstabs = (int) $classData->ibackstabs; $this->maxHeadShots = (int) $classData->iheadshots; $this->maxHealthLeeched = (int) $classData->ihealthpointsleached; }
/** * Creates a new instance of the Medic class based on the given XML data * * @param \SimpleXMLElement $classData The XML data for this Medic */ public function __construct(\SimpleXMLElement $classData) { parent::__construct($classData); $this->maxUberCharges = (int) $classData->inuminvulnerable; $this->maxHealthHealed = (int) $classData->ihealthpointshealed; }
/** * Creates a new instance of TF2Sniper based on the assigned XML data * @param $classData */ public function __construct($classData) { parent::__construct($classData); $this->maxHeadshots = (int) $classData->iheadshots; }