Skip to content

CCPhysicsBody bodyWithCircleOfRadius minor naming issue #1048

Open
@LearnCocos2D

Description

@LearnCocos2D

Apple objc guidelines frown upon using "and" as a parameter-combining word. The second parameter here ought to be just "center":

bodyWithCircleOfRadius:(CGFloat)radius andCenter:(CGPoint)center

Quote: "Don’t use “and” to link keywords that are attributes of the receiver."
https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/CodingGuidelines/Articles/NamingMethods.html --

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions