프로퍼티 | 타입 | 설명 | |
---|---|---|---|
DebugOutput | bool | ||
IsTouchable | bool | ||
TouchMode | TouchMode |
메소드 | 설명 | |
---|---|---|
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 |
메소드 | 설명 | |
---|---|---|
InteractableObject ( ) : System.Diagnostics |
메소드 | 설명 | |
---|---|---|
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 | ||
리턴 | void |
public EntersPlayfield ( RectSide side ) : bool | ||
side | RectSide | Side of the screen. |
리턴 | bool |
public EntersRect ( RectSide side, |
||
side | RectSide | Rectangle side. |
rect | Rectangle. | |
absolute | bool | Flag indicating whether rectangle coordinates are screen-bound or playfield-bound. |
리턴 | bool |
public EntersScreen ( RectSide side ) : bool | ||
side | RectSide | Side of the screen. |
리턴 | bool |
protected InteractableObject ( ) : System.Diagnostics | ||
리턴 | System.Diagnostics |
public IsInsideRect ( |
||
rect | Rectangle to test. | |
absolute | bool | Absolute or relative coordinates. |
리턴 | bool |
public IsOutsideRect ( |
||
rect | Rectangle to test. | |
absolute | bool | Absolute or relative coordinates. |
리턴 | bool |
public IsOverlappedWith ( |
||
obj | Object to test collision to. | |
리턴 | bool |
public LeavesPlayfield ( RectSide side ) : bool | ||
side | RectSide | Side of the playfield. |
리턴 | bool |
public LeavesRect ( RectSide side, |
||
side | RectSide | Rectangle side. |
rect | Rectangle. | |
absolute | bool | Flag indicating whether rectangle coordinates are screen-bound or playfield-bound. |
리턴 | bool |
public LeavesScreen ( RectSide side ) : bool | ||
side | RectSide | Side of the screen. |
리턴 | bool |