Skip to content

Commit

Permalink
Add @since docs to some new API
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
Gama11 committed Jan 11, 2017
1 parent 07c8887 commit 5548e6c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
1 change: 1 addition & 0 deletions flixel/FlxCamera.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1526,6 +1526,7 @@ class FlxCamera extends FlxBasic
/**
* Checks whether this camera contains a given point or rectangle, in
* screen coordinates.
* @since 4.3.0
*/
public inline function containsPoint(point:FlxPoint, width:Float = 0, height:Float = 0):Bool
{
Expand Down
11 changes: 6 additions & 5 deletions flixel/FlxSubState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@ import flixel.util.FlxColor;
*/
class FlxSubState extends FlxState
{
/**
* Callback method for state close event.
*/
public var closeCallback:Void->Void;

/**
* Callback method for state open/resume event.
* @since 4.3.0
*/
public var openCallback:Void->Void;

/**
* Callback method for state close event.
*/
public var closeCallback:Void->Void;

/**
* Helper sprite object for non-flash targets. Draws the background.
Expand Down
2 changes: 2 additions & 0 deletions flixel/group/FlxSpriteGroup.hx
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ class FlxTypedSpriteGroup<T:FlxSprite> extends FlxSprite
* @param Position The position that the new sprite or sprite group should be inserted at.
* @param Sprite The sprite or sprite group you want to insert into the group.
* @return The same object that was passed in.
*
* @since 4.3.0
*/
public function insert(Position:Int, Sprite:T):T
{
Expand Down
10 changes: 7 additions & 3 deletions flixel/math/FlxMatrix.hx
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,12 @@ class FlxMatrix extends Matrix
* @param px x coordinate of the point
* @param py y coordinate of the point
* @return transformed x coordinate of the point
*
* @since 4.3.0
*/
public inline function transformX(px:Float, py:Float):Float
{
return px * a + py * c + tx;
return px * a + py * c + tx;
}

/**
Expand All @@ -83,9 +85,11 @@ class FlxMatrix extends Matrix
* @param px x coordinate of the point
* @param py y coordinate of the point
* @return transformed y coordinate of the point
*
* @since 4.3.0
*/
public inline function transformY(px:Float, py:Float):Float
public inline function transformY(px:Float, py:Float):Float
{
return px * b + py * d + ty;
return px * b + py * d + ty;
}
}

0 comments on commit 5548e6c

Please sign in to comment.