tron
Class TronRectObstacle

java.lang.Object
  extended by tron.TronRectObstacle
All Implemented Interfaces:
TronObstacle

public class TronRectObstacle
extends java.lang.Object
implements TronObstacle

A rectangular obstacle April 2010

Author:
Ben Bederson

Constructor Summary
TronRectObstacle(int x, int y, int width, int height)
           
 
Method Summary
 java.util.ArrayList<Cell> getCells()
          Returns a list of cells that represent this obstacle.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TronRectObstacle

public TronRectObstacle(int x,
                        int y,
                        int width,
                        int height)
Method Detail

getCells

public java.util.ArrayList<Cell> getCells()
Description copied from interface: TronObstacle
Returns a list of cells that represent this obstacle.

Specified by:
getCells in interface TronObstacle
Returns:
list of cells in obstacle.


Web Accessibility