@@ -12,7 +12,7 @@ |
||
| 12 | 12 | /** |
| 13 | 13 | * If $prayfile is not null, all the data for this block |
| 14 | 14 | * will be read from the PRAYFile. |
| 15 | - * @param $prayfile The PRAYFile that this DFAM block belongs to. |
|
| 15 | + * @param PRAYFile $prayfile The PRAYFile that this DFAM block belongs to. |
|
| 16 | 16 | * @param $name The block's name. |
| 17 | 17 | * @param $content The binary data of this block. May be null. |
| 18 | 18 | * @param $flags The block's flags |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | * Makes a new EGGSBlock. \n |
| 13 | 13 | * If $prayfile is not null, all the data about this AGNTBlock |
| 14 | 14 | * will be read from the PRAYFile. |
| 15 | - * @param $prayfile The PRAYFile associated with this AGNT block. |
|
| 15 | + * @param PRAYFile $prayfile The PRAYFile associated with this AGNT block. |
|
| 16 | 16 | * It is allowed to be null. |
| 17 | 17 | * @param $name The name of this block. |
| 18 | 18 | * @param $content This block's content. |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | /** |
| 32 | 32 | * If $prayfile is not null, all the data for this block |
| 33 | 33 | * will be read from the PRAYFile. |
| 34 | - * @param $prayfile The PRAYFile that this DFAM block belongs to. |
|
| 34 | + * @param PRAYFile $prayfile The PRAYFile that this DFAM block belongs to. |
|
| 35 | 35 | * @param $name The block's name. |
| 36 | 36 | * @param $content The binary data of this block. May be null. |
| 37 | 37 | * @param $flags The block's flags |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | * FILEBlocks are currently read-only. \n |
| 18 | 18 | * If $prayfile is not null, all the data about this block |
| 19 | 19 | * will be read from the PRAYFile. |
| 20 | - * @param $prayfile The PRAYFile this FILEBlock belongs to. Can |
|
| 20 | + * @param PRAYFile $prayfile The PRAYFile this FILEBlock belongs to. Can |
|
| 21 | 21 | * be null. |
| 22 | 22 | * @param $name The name of this file block (also the file's |
| 23 | 23 | * name) |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | /** |
| 15 | 15 | * If $prayfile is not null, all the data for this block |
| 16 | 16 | * will be read from the PRAYFile. |
| 17 | - * @param $prayfile The PRAYFile object this block belongs to. Can be null. |
|
| 17 | + * @param PRAYFile $prayfile The PRAYFile object this block belongs to. Can be null. |
|
| 18 | 18 | * @param $name The block's name. This is a creature's moniker with .genetics appended. |
| 19 | 19 | * @param $content The block's binary data. Used when constructing from a PrayFile |
| 20 | 20 | * @param $flags The block's flags, which apply to the binary data as-is. |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | /** |
| 32 | 32 | * If $prayfile is not null, all the data for this block |
| 33 | 33 | * will be read from the PRAYFile. |
| 34 | - * @param $object The PRAYFile this FILEBlock belongs to, or the |
|
| 34 | + * @param PRAYFile $object The PRAYFile this FILEBlock belongs to, or the |
|
| 35 | 35 | * CreatureHistory object to store. <b>Cannot</b> be null. |
| 36 | 36 | * @param $name The name of this block. I think it's usually the |
| 37 | 37 | * creature's moniker with .GLST appended. |
@@ -172,6 +172,10 @@ discard block |
||
| 172 | 172 | |
| 173 | 173 | |
| 174 | 174 | /// @brief Decodes an event. Used by DecompileBlockData. |
| 175 | + |
|
| 176 | + /** |
|
| 177 | + * @param StringReader $reader |
|
| 178 | + */ |
|
| 175 | 179 | private function DecodeEvent($reader) { |
| 176 | 180 | $eventNumber = $reader->ReadInt(4); |
| 177 | 181 | //echo 'Event '.$eventNumber."\n"; |
@@ -206,7 +210,7 @@ discard block |
||
| 206 | 210 | /// @brief Compiles the block into binary for PrayBlock |
| 207 | 211 | /** |
| 208 | 212 | * @param $format One of the GLST_FORMAT_* constants |
| 209 | - * @return The compiled block data for Compile() |
|
| 213 | + * @return false|string compiled block data for Compile() |
|
| 210 | 214 | */ |
| 211 | 215 | protected function CompileBlockData($format=GLST_FORMAT_UNKNOWN) { |
| 212 | 216 | //if you don't know |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | /** |
| 15 | 15 | * If $prayfile is not null, all the data for this block |
| 16 | 16 | * will be read from the PRAYFile. |
| 17 | - * @param $prayfile The PRAYFile this LIVEBlock belongs to. |
|
| 17 | + * @param PRAYFile $prayfile The PRAYFile this LIVEBlock belongs to. |
|
| 18 | 18 | * @param $name The name of this block |
| 19 | 19 | * @param $content The binary data of this file block. |
| 20 | 20 | * @param $flags The block's flags. See PrayBlock. |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | /** |
| 17 | 17 | * If $prayfile is not null, all the data for this block |
| 18 | 18 | * will be read from the PRAYFile. |
| 19 | - * @param $prayfile The PRAYFile that this DSAG block belongs to. |
|
| 19 | + * @param PRAYFile $prayfile The PRAYFile that this DSAG block belongs to. |
|
| 20 | 20 | * @param $name The block's name. |
| 21 | 21 | * @param $content The binary data of this block. May be null. |
| 22 | 22 | * @param $flags The block's flags |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | |
| 39 | 39 | /// @brief Returns the photo data as an s16 file. <b>Deprecated.</b> |
| 40 | 40 | /** |
| 41 | - * @return The photo data as an S16File object. |
|
| 41 | + * @return S16File photo data as an S16File object. |
|
| 42 | 42 | */ |
| 43 | 43 | public function GetS16File() { |
| 44 | 44 | return new S16File(new StringReader($this->GetData())); |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | |
| 103 | 103 | /// @brief Encodes the block header for attaching to the front of the block binary data. |
| 104 | 104 | /** |
| 105 | - * @param $length length of the data that will be written to the block |
|
| 105 | + * @param integer $length length of the data that will be written to the block |
|
| 106 | 106 | * @param $uncompressedlength length of the data when uncompressed, etc. |
| 107 | 107 | */ |
| 108 | 108 | protected function EncodeBlockHeader($length,$uncompressedlength=false) { |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | /** |
| 128 | 128 | * Called automatically during Compile |
| 129 | 129 | * @param $data the data to perform the function on |
| 130 | - * @return the data, having been transformed. |
|
| 130 | + * @return boolean|string data, having been transformed. |
|
| 131 | 131 | */ |
| 132 | 132 | protected function PerformFlagOperations($data) { |
| 133 | 133 | if($this->IsFlagSet(PRAY_FLAG_ZLIB_COMPRESSED)) { |
@@ -140,6 +140,7 @@ discard block |
||
| 140 | 140 | |
| 141 | 141 | /// @brief Gets the PRAY block's name |
| 142 | 142 | /** return the PRAY block's name |
| 143 | + * @return string |
|
| 143 | 144 | */ |
| 144 | 145 | public function GetName() { |
| 145 | 146 | return $this->name; |
@@ -181,8 +182,8 @@ discard block |
||
| 181 | 182 | } |
| 182 | 183 | /// @brief Tells you whether $flag is set on this PRAY block |
| 183 | 184 | /** |
| 184 | - * @param $flag the bitfield to compare $flags to. As such can be multiple flags OR'd together. |
|
| 185 | - * @return true or false. |
|
| 185 | + * @param integer $flag the bitfield to compare $flags to. As such can be multiple flags OR'd together. |
|
| 186 | + * @return boolean or false. |
|
| 186 | 187 | */ |
| 187 | 188 | public function IsFlagSet($flag) { |
| 188 | 189 | return (($this->flags & $flag) === $flag); |
@@ -222,7 +223,7 @@ discard block |
||
| 222 | 223 | } |
| 223 | 224 | /// @brief Unsets flags |
| 224 | 225 | /** |
| 225 | - * @param $flags a bitfield representing the flags to set off. |
|
| 226 | + * @param integer $flags a bitfield representing the flags to set off. |
|
| 226 | 227 | */ |
| 227 | 228 | protected function SetFlagsOff($flags) { |
| 228 | 229 | $this->flags = $this->flags & ~$flags; |
@@ -288,7 +289,7 @@ discard block |
||
| 288 | 289 | /** For developer use. Called by |
| 289 | 290 | * @param $blocktype The type of PRAYBlock, as one of the Block Types defines. |
| 290 | 291 | * @param $prayfile The PRAYFile object that the PRAYBlock is a child of. This is used to allow blocks to access to each other. |
| 291 | - * @param $name The name of the PRAYBlock |
|
| 292 | + * @param string $name The name of the PRAYBlock |
|
| 292 | 293 | * @param $content The binary content of the PRAYBlock, uncompressed if necessary. |
| 293 | 294 | * @param $flags The flags given to this PRAYBlock as an integer. |
| 294 | 295 | * return An object that is an instance of a subclass of PrayBlock. |