예제 #1
0
 function __construct($prerequisites, \DnDEngine\Character $char)
 {
     parent::__construct(L::singleton()->t('Prerequisites not met for %s, requires %s.', array($char->getName(), $prerequisites)));
 }
예제 #2
0
파일: Base.php 프로젝트: Berdir/dnd
 /**
  * Short description for function
  *
  * Long description (if any) ...
  *
  * @return unknown Return description (if any) ...
  * @access public
  */
 public function getName()
 {
     return L::singleton()->t($this->name);
 }
예제 #3
0
파일: Base.php 프로젝트: Berdir/dnd
 /**
  * Short description for function
  *
  * Long description (if any) ...
  *
  * @return unknown Return description (if any) ...
  * @access public
  */
 public function getName()
 {
     return L::singleton()->t(static::Name);
 }
예제 #4
0
파일: Powerattack.php 프로젝트: Berdir/dnd
 /**
  * Short description for function
  *
  * Long description (if any) ...
  *
  * @return string Return description (if any) ...
  * @access public
  */
 public function getPrerequisites()
 {
     return L::singleton()->t('15 Strength');
 }
예제 #5
0
파일: Character.php 프로젝트: Berdir/dnd
    /**
     * Short description for function
     *
     * Long description (if any) ...
     *
     * @return mixed  Return description (if any) ...
     * @access public
     */
    public function dump()
    {
        return Language::singleton()->t(' ==== Dumping Character Information: ===
     	
Name : %s
Race : %s
Class: %s

Hitpoints: %s/%s

Speed   : %s
Vision  : %s
Size    : %s
     
Ability Score: 
%s', array($this->getName(), $this->getRace()->getName(), $this->getClass()->getName(), $this->getHitPoints(), $this->getMaxHitPoints(), $this->getSpeed(), $this->getVision(), $this->getSize(), $this->getAbilities()));
    }
예제 #6
0
파일: Actionsurge.php 프로젝트: Berdir/dnd
 /**
  * Short description for function
  *
  * Long description (if any) ...
  *
  * @return string Return description (if any) ...
  * @access public
  */
 public function getPrerequisites()
 {
     return Language::singleton()->t('Human');
 }
예제 #7
0
파일: Stdout.php 프로젝트: Berdir/dnd
 /**
  * Short description for function
  *
  * Long description (if any) ...
  *
  * @param  unknown $message Parameter description (if any) ...
  * @param  unknown $level   Parameter description (if any) ...
  * @return boolean Return description (if any) ...
  * @access public
  */
 public function log($message, $level)
 {
     if (!$this->isEnabled($level)) {
         return false;
     }
     $levelText = Language::singleton()->t(Logger::getText($level));
     foreach (explode("\n", $message) as $line) {
         echo date('d.m.Y H:i:s:' . (int) (round(microtime(), 4) * 1000) . ' : ') . $levelText . ' : ' . trim($line) . "\n";
     }
 }
예제 #8
0
파일: Logger.php 프로젝트: Berdir/dnd
 /**
  * Short description for function
  *
  * Long description (if any) ...
  *
  * @param  unknown $message    Parameter description (if any) ...
  * @param  integer $level      Parameter description (if any) ...
  * @param  array   $paramaters Parameter description (if any) ...
  * @return void
  * @access public
  * @static
  */
 public static function log($message, $level = self::INFO, $paramaters = array())
 {
     $message = Language::singleton()->t($message, $paramaters);
     foreach (self::$listeners as $listener) {
         $listener->log($message, $level);
     }
 }