Skip to content
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 FlxPointer as a base class for FlxTouch and FlxMouse, closes #1088 #1099

Merged
merged 4 commits into from
May 18, 2014

Conversation

Gama11
Copy link
Member

@Gama11 Gama11 commented May 17, 2014

No description provided.

@gamedevsam
Copy link
Contributor

I don't like the name of this class, having numbers in class names is just weird. Couldn't we name it FlxPointInput, or FlxPointer (similar to Phaser's Pointer class)?

@Gama11
Copy link
Member Author

Gama11 commented May 17, 2014

FlxPointer works for me.

@@ -44,6 +44,7 @@ class FlxTypedGroup<T:FlxBasic> extends FlxBasic
@:allow(flixel.FlxObject)
@:allow(flixel.tile.FlxTilemap)
@:allow(flixel.system.FlxQuadTree)
@:allow(flixel.input.FlxPointer)
private static inline function resolveGroup(ObjectOrGroup:FlxBasic):FlxTypedGroup<FlxBasic>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we move these private static functions to the bottom of the class? I always prefer to list public fields / methods before privates.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought we agreed on putting static fields to the top?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think private fields should go above public fields, static or not.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Imo, order should be:

public static
public

private static
private

@Gama11 Gama11 changed the title Add Flx2DInput as a base class for FlxTouch and FlxMouse, closes #1088 Add FlxPointer as a base class for FlxTouch and FlxMouse, closes #1088 May 18, 2014
Gama11 added a commit that referenced this pull request May 18, 2014
Add FlxPointer as a base class for FlxTouch and FlxMouse, closes #1088
@Gama11 Gama11 merged commit 83b0511 into HaxeFlixel:dev May 18, 2014
Gama11 added a commit to HaxeFlixel/flixel-demos that referenced this pull request May 18, 2014
Gama11 added a commit to HaxeFlixel/flixel-ui that referenced this pull request May 18, 2014
@Gama11 Gama11 deleted the Flx2DInput branch May 11, 2016 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants