public function __construct() { $value = array(); $value['range'] = ['short' => 30, 'mid' => 60, 'long' => 90]; $value['radius'] = self::RADIUS; $value['name'] = self::NAME; parent::__construct($value); }
public function __construct() { $this->_name = "Heavy Machine Gun"; $this->_charge = 0; $this->_shootType = 'standard'; $this->_shootAera = array('near' => 3, 'middle' => 7, 'far' => 10); parent::__construct(); }
public function __construct() { $this->name = "Spear"; $this->initCharge = 0; $this->shortRange = 30; $this->midRange = 60; $this->longRange = 90; parent::__construct(); }
public function __construct($hasEdge) { parent::__construct($damageAmount, $hasEdge); $this->hasEdge = $hasEdge; // if ($this->hasEdge = true) { // $this->damageAmount = $damageAmount + 2; // } else { // $this->damageAmount = $damageAmount +1; // } }