bubolo
 All Classes Namespaces Functions Variables Enumerator
Public Member Functions | List of all members
bubolo.graphics.CameraController Interface Reference
Inheritance diagram for bubolo.graphics.CameraController:
bubolo.controllers.Controller bubolo.graphics.TankCameraController

Public Member Functions

void setCamera (Camera camera)
 
boolean hasCamera ()
 
void update (World world)
 

Detailed Description

Interface for controllers that control the camera.

Author
BU CS673 - Clone Productions

Definition at line 11 of file CameraController.java.

Member Function Documentation

boolean bubolo.graphics.CameraController.hasCamera ( )

Returns true if this controller has a reference to the camera, or false otherwise.

Returns
true if this controller has a reference to the camera.

Implemented in bubolo.graphics.TankCameraController.

void bubolo.graphics.CameraController.setCamera ( Camera  camera)

Sets a reference to the camera. The camera must be set before calling the update method.

Parameters
camerareference to the camera.

Implemented in bubolo.graphics.TankCameraController.

void bubolo.controllers.Controller.update ( World  world)
inherited

Allows the controller to perform its processing. Called once per game tick.

Parameters
worldreference to the World/Model object.

Implemented in bubolo.graphics.TankCameraController.