Companion Animation Controller - UQcsse3200/2023-studio-2 GitHub Wiki
CompanionAnimationController
The CompanionAnimationController
class is responsible for managing animations for a companion entity and its accompanying infant companion.
Table of Contents
Methods
create()
- Description: Creates the
CompanionAnimationController
and sets up event listeners for animations. - Parameters: None. CompanionAnimationController controller = new CompanionAnimationController(); controller.create();
infanimateLeft()
-
**Description: Start the animation for moving the infant companion to the left.
-
**Parameters: None. // Java code example controller.infanimateLeft();
infanimateRight()
-
**Description: Start the animation for moving the infant companion to the right.
-
**Parameters: None. // Java code example controller.infanimateRight();
infanimateUp()
-
**Description: Start the animation for moving the infant companion up.
-
**Parameters: None.
// Java code example controller.infanimateUp();
infanimateDown()
-
**Description: Start the animation for moving the infant companion down.
-
**Parameters: None.
// Java code example controller.infanimateDown();
animateLeft()
-
**Description: Start the animation for moving the companion to the left.
-
**Parameters: None.
// Java code example controller.animateLeft();
animateRight
-
**Description: Start the animation for moving the companion to the right.
-
**Parameters: None.
// Java code example controller.animateRight();
animateUp()
-
**Description: Start the animation for moving the companion up.
-
**Parameters: None.
// Java code example controller.animateUp();
animateDown()
-
**Description: Start the animation for moving the companion down.
-
**Parameters: None.
// Java code example controller.animateDown();
animateUpLeft()
-
**Description: Start the animation for moving the companion up and to the left.
-
**Parameters: None.
// Java code example controller.animateUpLeft();
animateUpRight()
-
**Description: Start the animation for moving the companion up and to the right.
-
**Parameters: None.
// Java code example controller.animateUpRight();
animateDownLeft()
-
**Description: Start the animation for moving the companion down and to the left.
-
**Parameters: None.
// Java code example controller.animateDownLeft();
animateDownRight()
-
**Description: Start the animation for moving the companion down and to the right.
-
**Parameters: None.
// Java code example controller.animateDownRight();