simogl.gameobjects.character
Class AbstractCharacter

java.lang.Object
  extended by simogl.gameobjects.AbstractGameObject
      extended by simogl.gameobjects.character.AbstractCharacter
Direct Known Subclasses:
Civilian, Elder, Farmer

public abstract class AbstractCharacter
extends AbstractGameObject

This abstract class is the basic version of a character. Any specialized character must extend this class.

Author:
Frank Bruns

Constructor Summary
AbstractCharacter(float x, float y, float z)
          Creates a new abstract character at the specified position
 
Method Summary
 void update(long elapsedTime)
          Updates a game object
 
Methods inherited from class simogl.gameobjects.AbstractGameObject
getModel, getName, getPosition, getX, getY, getZ, setPosition, setPosition, setX, setY, setZ
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCharacter

public AbstractCharacter(float x,
                         float y,
                         float z)
Creates a new abstract character at the specified position

Parameters:
x - x-coordinate
y - y-coordinate
z - z-coordinate
Method Detail

update

public void update(long elapsedTime)
Description copied from class: AbstractGameObject
Updates a game object

Specified by:
update in class AbstractGameObject
Parameters:
elapsedTime - time between two frames