Public Member Functions | |
| void | setCamera (Camera camera) |
| boolean | hasCamera () |
| void | update (World world) |
Package Functions | |
| TankCameraController (Tank tank) | |
Controller that moves the camera based on the tank's position.
Definition at line 13 of file TankCameraController.java.
|
package |
Constructs a TankCameraController. Package-private because TankCameraController's are internal to the Graphics system.
| tank |
Definition at line 23 of file TankCameraController.java.
| boolean bubolo.graphics.TankCameraController.hasCamera | ( | ) |
Returns true if this controller has a reference to the camera, or false otherwise.
Implements bubolo.graphics.CameraController.
Definition at line 35 of file TankCameraController.java.
| void bubolo.graphics.TankCameraController.setCamera | ( | Camera | camera | ) |
Sets a reference to the camera. The camera must be set before calling the update method.
| camera | reference to the camera. |
Implements bubolo.graphics.CameraController.
Definition at line 29 of file TankCameraController.java.
| void bubolo.graphics.TankCameraController.update | ( | World | world | ) |
Allows the controller to perform its processing. Called once per game tick.
| world | reference to the World/Model object. |
Implements bubolo.controllers.Controller.
Definition at line 41 of file TankCameraController.java.
1.8.6