Property | Type | Description | |
---|---|---|---|
DebugOutput | bool | ||
IsTouchable | bool | ||
TouchMode | TouchMode |
Method | Description | |
---|---|---|
Draw ( |
||
EntersPlayfield ( RectSide side ) : bool |
Checks if the object has just entered the playfield. The object must enter it naturally using it's momentum.
|
|
EntersRect ( RectSide side, |
Checks whether the object enters a rectangle.
|
|
EntersScreen ( RectSide side ) : bool |
Checks if the object has just entered the screen. The object must enter it naturally using it's momentum.
|
|
IsClicked ( ) : bool |
Check if the user has released the tap on the object. Fires once per release.
|
|
IsInsideRect ( |
Checks whether this object is inside a rectangle.
|
|
IsOffPlayfield ( ) : bool |
Checks whether the object is fully outside the playfield of current level.
|
|
IsOffScreen ( ) : bool |
Checks whether the object is fully invisible.
|
|
IsOnPlayfield ( ) : bool |
Checks whether the object is fully inside the playfield of current level.
|
|
IsOnScreen ( ) : bool |
Checks whether the object is fully inside the screen.
|
|
IsOutsideRect ( |
Checks whether this object is inside a rectangle.
|
|
IsOverlappedWith ( |
Check whether an object collides with another object. Collision is rectangle based and non-rotatable.
|
|
IsPressed ( ) : bool |
Check if the user has pressed the object with their finger. Fires continuosly until the finger is released.
|
|
IsTapped ( ) : bool |
Check if the object has been tapped. Fires once per tap & hold.
|
|
LeavesPlayfield ( RectSide side ) : bool |
Checks if the object has just left the playfield. The object must leave it naturally using it's momentum.
|
|
LeavesRect ( RectSide side, |
Checks whether the object leaves a rectangle.
|
|
LeavesScreen ( RectSide side ) : bool |
Checks if the object has just left the screen. The object must leave it naturally using it's momentum.
|
|
Update ( ) : void |
Method | Description | |
---|---|---|
InteractableObject ( ) : System.Diagnostics |
Method | Description | |
---|---|---|
drawBoundingBox ( ) : void |
Draws the bounding box on screen.
|
|
drawHotSpot ( ) : void |
Draws the cross where the hot spot of the object is located.
|
|
entersRectFromBottom ( |
Checks if the object enters a specific rectangle from the bottom.
|
|
entersRectFromLeft ( |
Checks if the object enters a specific rectangle from the left.
|
|
entersRectFromRight ( |
Checks if the object enters a specific rectangle from the right.
|
|
entersRectFromTop ( |
Checks if the object enters a specific rectangle from the top.
|
|
findTouch ( |
Find a touch location that matches the current object.
|
|
leavesRectFromBottom ( |
Checks if the object leaves a specific rectangle to the bottom.
|
|
leavesRectFromLeft ( |
Checks if the object leaves a specific rectangle to the left.
|
|
leavesRectFromRight ( |
Checks if the object leaves a specific rectangle to the right.
|
|
leavesRectFromTop ( |
Checks if the object leaves a specific rectangle to the top.
|
public Draw ( |
||
batch | ||
return | void |
public EntersPlayfield ( RectSide side ) : bool | ||
side | RectSide | Side of the screen. |
return | bool |
public EntersRect ( RectSide side, |
||
side | RectSide | Rectangle side. |
rect | Rectangle. | |
absolute | bool | Flag indicating whether rectangle coordinates are screen-bound or playfield-bound. |
return | bool |
public EntersScreen ( RectSide side ) : bool | ||
side | RectSide | Side of the screen. |
return | bool |
protected InteractableObject ( ) : System.Diagnostics | ||
return | System.Diagnostics |
public IsInsideRect ( |
||
rect | Rectangle to test. | |
absolute | bool | Absolute or relative coordinates. |
return | bool |
public IsOutsideRect ( |
||
rect | Rectangle to test. | |
absolute | bool | Absolute or relative coordinates. |
return | bool |
public IsOverlappedWith ( |
||
obj | Object to test collision to. | |
return | bool |
public LeavesPlayfield ( RectSide side ) : bool | ||
side | RectSide | Side of the playfield. |
return | bool |
public LeavesRect ( RectSide side, |
||
side | RectSide | Rectangle side. |
rect | Rectangle. | |
absolute | bool | Flag indicating whether rectangle coordinates are screen-bound or playfield-bound. |
return | bool |
public LeavesScreen ( RectSide side ) : bool | ||
side | RectSide | Side of the screen. |
return | bool |