uwcse.sim
Interface Thing


public interface Thing

The basic interface for an object in the simulation world.


Method Summary
 void action()
          Every Thing must implement some fundamental action.
 void displayOn(uwcse.graphics.GWindow g)
          Every Thing must be able to display itself on a GWindow.
 int getX()
          Every Thing must have an x and y position.
 int getY()
          Every Thing must have an x and y position.
 boolean isAlive()
          Every thing has a lifetime.
 

Method Detail

action

public void action()
Every Thing must implement some fundamental action.

displayOn

public void displayOn(uwcse.graphics.GWindow g)
Every Thing must be able to display itself on a GWindow.

getX

public int getX()
Every Thing must have an x and y position.

getY

public int getY()
Every Thing must have an x and y position.

isAlive

public boolean isAlive()
Every thing has a lifetime.