Game Development Reference
In-Depth Information
movement (idle, fly, run, jump)
public boolean
currentlyMoving = false; //
Flag
showing if the object is in motion
public void
moveInvinciBagel(int x, int y) {
//
Movement Behavior
currentlyMoving = true;
invinciBagelX = x;
invinciBagelY = y;
}
public String
getInvinciBagelOrientation() {
//
Get Method for Orientation
return bagelOrientation;
}
public void
setInvinciBagelOrientation(String
orientation) { // Set Method for Orientation
bagelOrientation = orientation;
}
public int
getInvinciBagelLifeIndex() {
//
Get Method for Lifespan
return lifeIndex;
}
public void
setInvinciBagelLifeIndex(int lifespan)
{
// Set Method for Lifespan
lifeIndex = lifespan;
}
public String
getInvinciBagelDirection() {
//
Get Method for Facing Direction
return directionFacing;
}
public void
setInvinciBagelDirection(String direction)
{
// Set Method for Direction