Class Cell

Direct Known Subclasses:
Wall

public class Cell extends GameObject
Base to build enviroment. Every cell contains reference to object on it. If cell is empty content == null.
  • Field Details

  • Constructor Details

    • Cell

      public Cell(int x, int y)
  • Method Details

    • render

      protected void render(Graphics2D g)
      Description copied from class: GameObject
      Method who render a object on screen (invoke on begin of each frames).
      Overrides:
      render in class GameObject