massim.goldsimulations
Class GridSimulationCell

java.lang.Object
  extended by massim.gridsimulations.AbstractGridSimulationCell
      extended by massim.goldsimulations.GridSimulationCell
All Implemented Interfaces:
java.io.Serializable

public class GridSimulationCell
extends AbstractGridSimulationCell

This class describes a single GridCell.

See Also:
Serialized Form

Field Summary
 boolean depot
           
 boolean gold
           
 boolean mark
           
 java.lang.String markText
           
 
Fields inherited from class massim.gridsimulations.AbstractGridSimulationCell
agent, agentTeam, object, obstacle
 
Constructor Summary
GridSimulationCell()
           
 
Method Summary
 boolean freeCell()
          This method checks, if a cell is free for pushing
 boolean noObject()
          This method checks whether the cell contains an object or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mark

public boolean mark

gold

public boolean gold

depot

public boolean depot

markText

public java.lang.String markText
Constructor Detail

GridSimulationCell

public GridSimulationCell()
Method Detail

noObject

public boolean noObject()
This method checks whether the cell contains an object or not.

Specified by:
noObject in class AbstractGridSimulationCell
Returns:
Returns false, if gold, depot, obstacle or agent is in the cell, otherwise true.

freeCell

public boolean freeCell()
This method checks, if a cell is free for pushing

Specified by:
freeCell in class AbstractGridSimulationCell
Parameters:
x - Position x on the grid
y - Position y on the grid
Returns:
True in such a case, else false


Copyright © 2011. All Rights Reserved.