コード例 #1
0
ファイル: navalspear.class.php プロジェクト: avallete/PHPool
 public function __construct()
 {
     $value = array();
     $value['range'] = ['short' => 30, 'mid' => 60, 'long' => 90];
     $value['radius'] = self::RADIUS;
     $value['name'] = self::NAME;
     parent::__construct($value);
 }
コード例 #2
0
 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();
 }
コード例 #3
0
ファイル: Spear.class.php プロジェクト: elenys/PHP-Warhammer
 public function __construct()
 {
     $this->name = "Spear";
     $this->initCharge = 0;
     $this->shortRange = 30;
     $this->midRange = 60;
     $this->longRange = 90;
     parent::__construct();
 }
コード例 #4
0
 public function __construct($hasEdge)
 {
     parent::__construct($damageAmount, $hasEdge);
     $this->hasEdge = $hasEdge;
     // if ($this->hasEdge = true) {
     //     $this->damageAmount = $damageAmount + 2;
     // } else {
     //     $this->damageAmount = $damageAmount +1;
     // }
 }