@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | * @param $name The name of the block. Cannot be null. |
| 26 | 26 | * @param $content The binary data this block contains. Can be null. |
| 27 | 27 | * @param $flags The flags relating to this block. Should be zero or real flags. |
| 28 | - * @param $type The block's 4-character type. Must be defined. |
|
| 28 | + * @param string $type The block's 4-character type. Must be defined. |
|
| 29 | 29 | */ |
| 30 | 30 | public function TagBlock($prayfile,$name,$content,$flags,$type) { |
| 31 | 31 | parent::PrayBlock($prayfile,$name,$content,$flags,$type); |
@@ -40,6 +40,7 @@ discard block |
||
| 40 | 40 | /** |
| 41 | 41 | * Returns the tag's value as a string, or |
| 42 | 42 | * nothing if the tag doesn't exist. |
| 43 | + * @param string $key |
|
| 43 | 44 | */ |
| 44 | 45 | public function GetTag($key) { |
| 45 | 46 | $this->EnsureDecompiled(); |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | |
| 58 | 58 | /// @brief Compiles the PRAYFile. |
| 59 | 59 | /** |
| 60 | - * @return A binary string containing the PRAYFile's contents. |
|
| 60 | + * @return string binary string containing the PRAYFile's contents. |
|
| 61 | 61 | */ |
| 62 | 62 | public function Compile() { |
| 63 | 63 | $compiled = 'PRAY'; |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | } |
| 54 | 54 | /// @brief Compiles the file's data into a C16 binary string |
| 55 | 55 | /** |
| 56 | - * @return A binary string containing the C16File's data. |
|
| 56 | + * @return string binary string containing the C16File's data. |
|
| 57 | 57 | */ |
| 58 | 58 | public function Compile() { |
| 59 | 59 | $data = ''; |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | |
| 56 | 56 | /// @brief Compiles the S16 file into a binary string. |
| 57 | 57 | /** |
| 58 | - * @return a binary string containing s16 data of whatever the |
|
| 58 | + * @return string binary string containing s16 data of whatever the |
|
| 59 | 59 | * current encoding set by SetEncoding() is. If you haven't set |
| 60 | 60 | * it, it's most likely 565. |
| 61 | 61 | */ |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | /// @brief Encodes the image into s16 frame data. |
| 42 | 42 | /** |
| 43 | 43 | * @param $format 555 or 565. |
| 44 | - * @return s16 image data in the format specified |
|
| 44 | + * @return string image data in the format specified |
|
| 45 | 45 | */ |
| 46 | 46 | |
| 47 | 47 | public function Encode($format='565') { |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | * Called automatically by SPRFile::Compile() \n |
| 98 | 98 | * Generally end-users won't want a single frame of SPR data, |
| 99 | 99 | * so add it to an SPRFile and call SPRFile::Compile(). |
| 100 | - * @return a binary string of SPR data. |
|
| 100 | + * @return string binary string of SPR data. |
|
| 101 | 101 | */ |
| 102 | 102 | public function Encode() { |
| 103 | 103 | $data = ''; |
@@ -11,6 +11,9 @@ discard block |
||
| 11 | 11 | |
| 12 | 12 | /// @cond INTERNAL_DOCS |
| 13 | 13 | |
| 14 | + /** |
|
| 15 | + * @param string $filetype |
|
| 16 | + */ |
|
| 14 | 17 | public function SpriteFile($filetype) { |
| 15 | 18 | $this->spritefiletype = $filetype; |
| 16 | 19 | } |
@@ -102,7 +105,7 @@ discard block |
||
| 102 | 105 | /** |
| 103 | 106 | * May be removed in a future release. |
| 104 | 107 | * Use GetFrame($frame)->ToPNG() instead. |
| 105 | - * @param $frame The 0-based index of the frame to delete. |
|
| 108 | + * @param integer $frame The 0-based index of the frame to delete. |
|
| 106 | 109 | * @return A binary string containing a PNG. |
| 107 | 110 | */ |
| 108 | 111 | public function ToPNG($frame) { |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | /// @brief Gets the GD Image resource for this sprite frame. |
| 43 | 43 | /// <strong> Deprecated</strong> |
| 44 | 44 | /** |
| 45 | - * @return a GD image resource. See http://php.net/image |
|
| 45 | + * @return resource GD image resource. See http://php.net/image |
|
| 46 | 46 | */ |
| 47 | 47 | public function GetGDImage() { |
| 48 | 48 | $this->EnsureDecoded(); |
@@ -54,6 +54,10 @@ discard block |
||
| 54 | 54 | return $this->width; |
| 55 | 55 | } |
| 56 | 56 | /// @brief Gets the height of the frame in pixels |
| 57 | + |
|
| 58 | + /** |
|
| 59 | + * @return integer |
|
| 60 | + */ |
|
| 57 | 61 | public function GetHeight() { |
| 58 | 62 | return $this->height; |
| 59 | 63 | } |
@@ -69,8 +73,8 @@ discard block |
||
| 69 | 73 | * [alpha] => 0 |
| 70 | 74 | * )</pre> |
| 71 | 75 | * @see http://php.net/imagecolorsforindex |
| 72 | - * @param $x The x-coordinate of the pixel to get. |
|
| 73 | - * @param $y The y-coordinate of the pixel to get. |
|
| 76 | + * @param integer $x The x-coordinate of the pixel to get. |
|
| 77 | + * @param integer $y The y-coordinate of the pixel to get. |
|
| 74 | 78 | * @return An associative array containing the keys 'red','green','blue','alpha'. |
| 75 | 79 | */ |
| 76 | 80 | public function GetPixel($x,$y) { |
@@ -150,7 +154,7 @@ discard block |
||
| 150 | 154 | |
| 151 | 155 | /// @brief Converts this SpriteFrame into a PNG. |
| 152 | 156 | /** |
| 153 | - * @return A binary string in PNG format, ready for output! :) |
|
| 157 | + * @return string binary string in PNG format, ready for output! :) |
|
| 154 | 158 | */ |
| 155 | 159 | public function ToPNG() { |
| 156 | 160 | $this->EnsureDecoded(); |
@@ -12,6 +12,9 @@ |
||
| 12 | 12 | return false; //coming soon |
| 13 | 13 | } |
| 14 | 14 | } |
| 15 | +/** |
|
| 16 | + * @param string $data |
|
| 17 | + */ |
|
| 15 | 18 | function Archive($data,$filehandle=null) { |
| 16 | 19 | if(is_resource($filehandle)) { |
| 17 | 20 | return false; |