/** * @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); }
/** * 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); } }
/** * 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); }
function __construct() { parent::__construct(self::$PATH); }