예제 #1
0
파일: Gun.php 프로젝트: Vincebml/PHPatterns
 /**
  * Perform an attack to the opponent
  * @param Bridge\AbstractFighter $opponent
  * @return string
  */
 public function attack(Bridge\AbstractFighter $opponent)
 {
     return sprintf("Attacking %s with a gun!", $opponent->getName());
 }