-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add FlxGroup#killAll()
and FlxGroup#reviveAll()
#185
base: dev
Are you sure you want to change the base?
Add FlxGroup#killAll()
and FlxGroup#reviveAll()
#185
Conversation
`FlxGroup#kill()` and `FlxGroup#revive()` no longer kill or revive the group's members, only the group itself. See FlixelCommunity#30 (comment)
…ehaviors of `FlxGroup` ... since we are no longer overriding those methods, adding the relevant ASDoc would be possible, but seems less logical than it needs to be. It's easier just to add the information to `FlxBasic` instead.
First a question: now that we have About the code, even though it looks great, I think we could implement it using already existing methods, such as About the ASDoc, I think it is misplaced. The text should not be placed in |
Yep, that's the way I set it up in the code (the diff looks a bit funny, but you can see the final result here).
I agree, but the problem is, /** Documentation here... */
override public function kill():void
{
super.kill();
} The reason I added it to |
To be honest, although handy, I hate methods like that; it reeks of too much "dynamicness". I figured every member is going to at least be a It is also much faster, though in this scenario, I don't see performance as being an issue as Although it does use up more code than is necessary, so I am alright with changing it to |
I'm sorry about the About the docs, I'm not sure how to proceed. I think something like this... /** Documentation here... */
override public function kill():void
{
super.kill();
} ...is ugly, but necessary. IDEs showing docs during auto-complete, for instance, will help developers to understand what is happening. However, as you said, it's not the end of the world with the docs are in And about pushing this change up to the next release, any thoughts on that? |
Yeah, that's probably a good idea. I went ahead and added a pull request which reverts the changes to |
Great! This pull request will remain open and attached to #30, which has been pushed up to the next release. During the next cycle we check and merge this pull request. |
The following commit has been undone: FlixelCommunity#110 And a tiny bit of documentation has been added describing the changes. Discussion: - FlixelCommunity#185 - FlixelCommunity#30 (comment)
See #30 (comment)
I also added a second commit which points out this new behavior of
FlxGroup#kill()
and just emphasizes the original behavior ofFlxGroup#revive()
. Since we are no longer overriding those methods, adding the relevant ASDoc insideFlxGroup
would be possible, but seems more complicated than we need to make it. It's easier just to add the information toFlxBasic
instead.Should I keep the second commit, or remove it?