Fix typos and other trivial cleanup

This commit is contained in:
Marc Lepage 2013-11-10 22:00:50 -05:00
parent 1f742b6675
commit 27b82f8f67
1 changed files with 81 additions and 81 deletions

View File

@ -24,8 +24,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE. THE SOFTWARE.
****************************************************************************/ ****************************************************************************/
#ifndef __SPITE_NODE_CCSPRITE_H__ #ifndef __SPRITE_NODE_CCSPRITE_H__
#define __SPITE_NODE_CCSPRITE_H__ #define __SPRITE_NODE_CCSPRITE_H__
#include "CCNode.h" #include "CCNode.h"
#include "CCProtocols.h" #include "CCProtocols.h"
@ -425,13 +425,13 @@ public:
* If you want to flip the anchorPoint too, and/or to flip the children too use: * If you want to flip the anchorPoint too, and/or to flip the children too use:
* sprite->setScaleX(sprite->getScaleX() * -1); * sprite->setScaleX(sprite->getScaleX() * -1);
* *
* @return true if the sprite is flipped horizaontally, false otherwise. * @return true if the sprite is flipped horizontally, false otherwise.
*/ */
bool isFlippedX(void) const; bool isFlippedX(void) const;
/** /**
* Sets whether the sprite should be flipped horizontally or not. * Sets whether the sprite should be flipped horizontally or not.
* *
* @param bFlipX true if the sprite should be flipped horizaontally, false otherwise. * @param flippedX true if the sprite should be flipped horizontally, false otherwise.
*/ */
void setFlippedX(bool flippedX); void setFlippedX(bool flippedX);
@ -441,7 +441,7 @@ public:
*/ */
CC_DEPRECATED_ATTRIBUTE bool isFlipX() { return isFlippedX(); }; CC_DEPRECATED_ATTRIBUTE bool isFlipX() { return isFlippedX(); };
/** @deprecated Use setFlippedX() instead */ /** @deprecated Use setFlippedX() instead */
CC_DEPRECATED_ATTRIBUTE void setFlipX(bool flippedX) { setFlippedX(flippedX); }; CC_DEPRECATED_ATTRIBUTE void setFlipX(bool flippedX) { setFlippedX(flippedX); };
/** /**
* Return the flag which indicates whether the sprite is flipped vertically or not. * Return the flag which indicates whether the sprite is flipped vertically or not.
@ -451,13 +451,13 @@ public:
* If you want to flip the anchorPoint too, and/or to flip the children too use: * If you want to flip the anchorPoint too, and/or to flip the children too use:
* sprite->setScaleY(sprite->getScaleY() * -1); * sprite->setScaleY(sprite->getScaleY() * -1);
* *
* @return true if the sprite is flipped vertically, flase otherwise. * @return true if the sprite is flipped vertically, false otherwise.
*/ */
bool isFlippedY(void) const; bool isFlippedY(void) const;
/** /**
* Sets whether the sprite should be flipped vertically or not. * Sets whether the sprite should be flipped vertically or not.
* *
* @param bFlipY true if the sprite should be flipped vertically, flase otherwise. * @param flippedY true if the sprite should be flipped vertically, false otherwise.
*/ */
void setFlippedY(bool flippedY); void setFlippedY(bool flippedY);
@ -466,7 +466,7 @@ public:
/** @deprecated Use isFlippedY() instead */ /** @deprecated Use isFlippedY() instead */
CC_DEPRECATED_ATTRIBUTE bool isFlipY() { return isFlippedY(); }; CC_DEPRECATED_ATTRIBUTE bool isFlipY() { return isFlippedY(); };
/** @deprecated Use setFlippedY() instead */ /** @deprecated Use setFlippedY() instead */
CC_DEPRECATED_ATTRIBUTE void setFlipY(bool flippedY) { setFlippedY(flippedY); }; CC_DEPRECATED_ATTRIBUTE void setFlipY(bool flippedY) { setFlippedY(flippedY); };
// //
// Overrides // Overrides
@ -575,8 +575,8 @@ protected:
bool _opacityModifyRGB; bool _opacityModifyRGB;
// image is flipped // image is flipped
bool _flippedX; /// Whether the sprite is flipped horizaontally or not. bool _flippedX; /// Whether the sprite is flipped horizontally or not
bool _flippedY; /// Whether the sprite is flipped vertically or not. bool _flippedY; /// Whether the sprite is flipped vertically or not
}; };
@ -585,4 +585,4 @@ protected:
NS_CC_END NS_CC_END
#endif // __SPITE_NODE_CCSPRITE_H__ #endif // __SPRITE_NODE_CCSPRITE_H__