Class CCase

java.lang.Object
fr.formiko.formiko.CCase
All Implemented Interfaces:
Serializable

public class CCase extends Object implements Serializable
See Also:
  • Field Details

    • contenu

      private Case contenu
    • gc

      private GCase gc
  • Constructor Details

    • CCase

      public CCase(Case contenu, GCase gc)
    • CCase

      public CCase(int x, int y, GCase gc)
    • CCase

      public CCase(Case contenu)
    • CCase

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

    • getUp

      public CCase getUp()
    • getDown

      public CCase getDown()
    • getRigth

      public CCase getRigth()
    • getLeft

      public CCase getLeft()
    • getContent

      public Case getContent()
    • setContenu

      public void setContenu(Case c)
    • getGg

      public GGraine getGg()
    • getX

      public int getX()
    • getY

      public int getY()
    • getGc

      public GCase getGc()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • desc

      public String desc()
    • equals

      public boolean equals(Object o)
      Standard equals function.
      Null & other class type proof.
      Overrides:
      equals in class Object
      Parameters:
      o - o is the Object to test. It can be null or something else than this class.
    • getGg

      public GGraine getGg(int radius)
    • getGca

      public fr.formiko.usual.structures.listes.Liste<Case> getGca(int radius)
    • getDirection

      public int getDirection(CCase to)
      return a direction by using this & an other CCase to reach.
    • getDirection

      public int getDirection(Case to)
      return a direction by using this & a Case to reach.
    • getDirection

      public static int getDirection(fr.formiko.usual.Point from, fr.formiko.usual.Point to)
      return a direction by using 2 Point.
    • getDirectionFromXY

      private static int getDirectionFromXY(int x, int y)
      return a direction by using difference in x & in y.
    • getPoint

      public String getPoint()
    • getGi

      public GInsecte getGi()
    • getGi

      public GInsecte getGi(int radius)
    • nbrDeCaseVoisine

      public byte nbrDeCaseVoisine()