Package labyrinth.grid

Examples of labyrinth.grid.Square


   */
  public void drawVisitedRooms(Graphics g) {
    /*
     * Drawing known rooms
     */
    Square c = (Square) bob.getLocation();
    if (!visitedRooms.contains(c)) // updating visited rooms
      visitedRooms.add(c);
    for (Square s : visitedRooms) {
      int j = s.getColumn();
      int i = s.getRow();
View Full Code Here


 
  /**
   * Add the current room to the triggered trapped room if it is trapped.
   */
  public void updateTraps() {
    Square c = (Square) bob.getLocation();
    if ((!visitedTrappedRooms.contains(c)) &&
        ((VertexRoom) c).getDamage()>0)
    {
      // Add the room.
      visitedTrappedRooms.add(c);
View Full Code Here

TOP

Related Classes of labyrinth.grid.Square

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.