示例#1
0
 /**
  * @param int $turns [optional] The number of turns you want to play.
  *                   If you don't specify this parameter, 300 turns will be played.
  *
  * @param string $map [optional] The map id corresponding to the map you want to use.
  *                    Possible values are: m1, m2, m3, m4, m5, m6.
  *                    If you don't specify this parameter, a random map will be generated for you.
  *
  * @link https://github.com/ornicar/vindinium/blob/master/app/Maps.scala
  */
 function __construct($turns = null, $map = null)
 {
     $params = null;
     $turns and $params['turns'] = $turns;
     $map and $params['map'] = $map;
     parent::__construct(self::$PATH, $params);
 }
示例#2
0
文件: CBC.php 项目: chansolo/TeamPass
 /**
  * Constructor
  * Sets the cipher object that will be used for encryption
  *
  * @param object $cipher one of the phpCrypt encryption cipher objects
  * @return void
  */
 function __construct($cipher)
 {
     parent::__construct(PHP_Crypt::MODE_CBC, $cipher);
     // this works with only block Ciphers
     if ($cipher->type() != Cipher::BLOCK) {
         trigger_error("CBC mode requires a block cipher", E_USER_WARNING);
     }
 }
示例#3
0
文件: Raw.php 项目: chansolo/TeamPass
 /**
  * Constructor used by classes that extend this class
  * Used by Mode_Stream, which extends this class
  *
  * @param object $cipher One of phpCrypts cipher objects
  * @param integer $mode The mode constant identifier
  * @return void
  */
 protected function __construct1($mode, $cipher)
 {
     parent::__construct($mode, $cipher);
 }
示例#4
0
 function __construct()
 {
     parent::__construct(self::$PATH);
 }