Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- abstract class Creature {
- //public int position;
- int r, c;
- abstract void moveTo (Location l);
- int xPixel () {
- return c * 16 + 8;
- }
- int yPixel () {
- return r * 16 + 8;
- }
- abstract void putSelfInGrid();
- abstract Location getLocation();
- abstract void removeSelfFromGrid();
- abstract void beEaten();
- }
Advertisement
Add Comment
Please, Sign In to add comment