public class FullBody
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
bendBack()
makes the robot bend back
Todo: smoothen it
|
static void |
bow()
Animation for making the robot bow
|
void |
draw(java.awt.Graphics2D g) |
static void |
fullBodyImage(java.lang.String image)
Changes the body image and "deletes" all legs by making objects null
|
static void |
fullBodyRotate(double radians) |
static void |
fullBodyShift(double x,
double y) |
static void |
homePos()
Robot returns to home position
|
static void |
jumpBack()
Animations for making the robot flip
|
static void |
jumpUp()
Animations for showing the robot jump up
|
static void |
moveBackward()
Moves the robot backward
|
static void |
moveForward()
Moves the robot forward
|
static void |
pushUp()
Animations for showing the robot complete pushup
|
static void |
turnLeft()
Turns the robot to its left side
|
static void |
turnRight()
turns the robot to it's right side
|
public FullBody(Simulator simulator)
public void draw(java.awt.Graphics2D g)
public static void fullBodyShift(double x, double y)
public static void fullBodyRotate(double radians)
public static void fullBodyImage(java.lang.String image)
image
- - the name of the imagepublic static void moveForward()
public static void moveBackward()
public static void turnLeft()
public static void turnRight()
public static void homePos()
public static void bow()
public static void bendBack()
public static void pushUp()
public static void jumpUp()
public static void jumpBack()