Entity.java :  » Game » javadungeoncrawlerv01 » game » Java Open Source

Java Open Source » Game » javadungeoncrawlerv01 
javadungeoncrawlerv01 » game » Entity.java
package game;

import game.room.Room;

/** All objects in the game world MUST extend this class. */
public abstract class Entity {
  /**
   * @param room - the room.
   * @param layer - the layer.
   * @param row - the row.
   * @param col - the column.
   * @return whether or not this entity can be placed here.
   */
  public abstract boolean validatePosition(final Room room, final int layer,
    final int row, final int col);
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.