jme.controller
Interface EntityController

All Known Implementing Classes:
AbstractGameController

public interface EntityController

EntityController defines an interface for interacting with an entity. An entity can be a game object such as a character running around the world or a Entity where the Entity is a means for defining the view port of the display.

Version:
0.1.0
Author:
Mark Powell

Method Summary
 Vector getEntityPosition()
          getEntityPosition returns the current location in three dimensional space of the Entity.
 void render()
          render sets the model view matrix to that defined by the Entity's position, view and up vectors.
 void setEntityPitch(float angle)
          setEntityPitch sets the pitch angle of the entity.
 void setEntityPosition(Vector position)
          setEntityPosition sets the position of the Entity to the vector passed.
 void setEntityRoll(float angle)
          setEntityRoll sets the roll angle of the entity.
 void setEntityYaw(float angle)
          setEntityYaw sets the yaw angle of the entity.
 

Method Detail

getEntityPosition

public Vector getEntityPosition()
getEntityPosition returns the current location in three dimensional space of the Entity.

Returns:
the position of the Entity.

setEntityPosition

public void setEntityPosition(Vector position)
setEntityPosition sets the position of the Entity to the vector passed.

Parameters:
position - the new position of the Entity.

setEntityYaw

public void setEntityYaw(float angle)
setEntityYaw sets the yaw angle of the entity. Where yaw is defined as rotation about the local Y axis.

Parameters:
angle - the angle of yaw.

setEntityRoll

public void setEntityRoll(float angle)
setEntityRoll sets the roll angle of the entity. Where roll is defined as rotation about the local Z axis.

Parameters:
angle - the angle of roll.

setEntityPitch

public void setEntityPitch(float angle)
setEntityPitch sets the pitch angle of the entity. Where pitch is defined as rotation about the local x axis.

Parameters:
angle - the angle of pitch.

render

public void render()
render sets the model view matrix to that defined by the Entity's position, view and up vectors.