|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.fcps.karel2.Item
public abstract class Item
The Item class keeps track of an x and y coordinate and provides an abstract render method.
Field Summary | |
---|---|
protected int |
x
|
protected int |
y
|
Constructor Summary | |
---|---|
Item(int x,
int y)
Constructs an item with the specified x and y coordinates. |
Method Summary | |
---|---|
int |
getX()
Returns the x coordinate. |
int |
getY()
Returns the y coordinate. |
abstract void |
render(java.awt.Graphics g,
edu.fcps.karel2.util.Coordinate c)
Renders the Item. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int x
protected int y
Constructor Detail |
---|
public Item(int x, int y)
Method Detail |
---|
public int getX()
public int getY()
public abstract void render(java.awt.Graphics g, edu.fcps.karel2.util.Coordinate c)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |