메소드 | 설명 | |
---|---|---|
FreeMovingSprite ( ) : System | ||
FreeMovingSprite ( int x, int y ) : System | ||
FreeMovingSprite ( int x, int y, float speed, float accel ) : System | ||
FreeMovingSprite ( int x, int y, int width, int height ) : System | ||
FreeMovingSprite ( int x, int y, int width, int height, float speed, float accel ) : System | ||
cancelMoveToDestination ( ) : void | ||
getAcceleration ( ) : float | ||
getSpeed ( ) : float | ||
move ( Direction dir, float elapsed, bool collide = true ) : bool |
Moves this Sprite a given Direction. Optional parameter sets it to collide with the scene and characters in the scene.
|
|
move ( float angle, float elapsed, bool collide = true ) : bool |
Moves this Sprite a given angle (0 to 2 pi). Optional parameter sets it to collide with the scene and characters in the scene.
|
|
moveToDestination ( int x, int y, System.Action postExecute, bool collide = false ) : void | ||
moveToDestination ( int x, int y, float time, System.Action postExecute, bool collide = false ) : void | ||
reset ( ) : void | ||
setAcceleration ( float accel ) : void | ||
setSpeed ( float speed ) : void | ||
update ( float elapsed ) : void |
메소드 | 설명 | |
---|---|---|
moveAngleHelper ( float angle, float speed, float elapsed, bool collide = true ) : bool | ||
moveDirectionHelper ( Direction dir, float speed, float elapsed, bool collide = true ) : bool |
public FreeMovingSprite ( int x, int y, float speed, float accel ) : System | ||
x | int | |
y | int | |
speed | float | |
accel | float | |
리턴 | System |
public FreeMovingSprite ( int x, int y, int width, int height ) : System | ||
x | int | |
y | int | |
width | int | |
height | int | |
리턴 | System |
public FreeMovingSprite ( int x, int y, int width, int height, float speed, float accel ) : System | ||
x | int | |
y | int | |
width | int | |
height | int | |
speed | float | |
accel | float | |
리턴 | System |
public move ( Direction dir, float elapsed, bool collide = true ) : bool | ||
dir | Direction | Direction to move the Character |
elapsed | float | Time that has elapsed since last update, in seconds |
collide | bool | Specifies whether the Sprite should collide with objects in the scene |
리턴 | bool |
public move ( float angle, float elapsed, bool collide = true ) : bool | ||
angle | float | Angle in radians, from 0 to 2 pi, to move the Character |
elapsed | float | Time that has elapsed since last update, in seconds |
collide | bool | Specifies whether the Sprite should collide with objects in the scene |
리턴 | bool |
public moveToDestination ( int x, int y, System.Action postExecute, bool collide = false ) : void | ||
x | int | |
y | int | |
postExecute | System.Action | |
collide | bool | |
리턴 | void |
public moveToDestination ( int x, int y, float time, System.Action postExecute, bool collide = false ) : void | ||
x | int | |
y | int | |
time | float | |
postExecute | System.Action | |
collide | bool | |
리턴 | void |