Class ViewNull

java.lang.Object
fr.formiko.views.ViewNull
All Implemented Interfaces:
fr.formiko.usual.Progression, View

public class ViewNull extends Object implements View
Null view. A simple view who do nothing when a view action is launch.
Author:
Hydrolien
  • Field Details

    • actionGameOn

      private boolean actionGameOn
  • Constructor Details

    • ViewNull

      public ViewNull()
  • Method Details

    • getActionGameOn

      public boolean getActionGameOn()
      Specified by:
      getActionGameOn in interface View
    • ini

      public boolean ini()
      A null view action that do nothing.
      Specified by:
      ini in interface View
      Returns:
      Return true if nothing have been print or paint.
    • close

      public boolean close()
      A null view action that do nothing.
      Specified by:
      close in interface View
      Returns:
      Return true if nothing have been print or paint.
    • paint

      public boolean paint()
      A null view action that do nothing.
      Specified by:
      paint in interface View
      Returns:
      Return true if nothing have been print or paint.
    • actionGame

      public boolean actionGame()
      A null view action that do nothing.
      Specified by:
      actionGame in interface View
      Returns:
      Return true if nothing have been print or paint.
    • pauseActionGame

      public int pauseActionGame()
      A null view action that do nothing.
      Specified by:
      pauseActionGame in interface View
      Returns:
      Return true if nothing have been print or paint.
    • endActionGame

      public boolean endActionGame(boolean withButton, int nextLevel, String message, GJoueur gj, boolean canResumeGame)
      A null view action that do nothing.
      Specified by:
      endActionGame in interface View
      Parameters:
      withButton - true if we need to add button "return to main menu" and "next level".
      nextLevel - the number of the next level to link to the button. -1 = no next level.
      message - message to print.
      gj - sorted player list to print.
      Returns:
      Return true if nothing have been print or paint.
    • setLookedCCase

      public boolean setLookedCCase(CCase cc)
      A null view action that do nothing.
      Specified by:
      setLookedCCase in interface View
      Returns:
      Return true if nothing have been print or paint.
    • getLookedCCase

      public CCase getLookedCCase()
      A null view action that do nothing.
      Specified by:
      getLookedCCase in interface View
      Returns:
      Return true if nothing have been print or paint.
    • getAntChoice

      public int getAntChoice(int[] t)
      A null view action that do nothing.
      Specified by:
      getAntChoice in interface View
      Returns:
      Return -1;
    • getCCase

      public CCase getCCase()
      A null view action that do nothing.
      Specified by:
      getCCase in interface View
      Returns:
      Return null;
    • message

      public void message(String message, boolean doWeNeedToDoNextCmdNow)
      A null view action that do nothing.
      Specified by:
      message in interface View
      Parameters:
      message - the message to print.
      doWeNeedToDoNextCmdNow - true if we need to do next commande now.
    • loadingMessage

      public void loadingMessage(String message, int percentageDone)
      A null view action that do nothing.
      Specified by:
      loadingMessage in interface View
      Parameters:
      message - the message to print.
      percentageDone - the percentage of loading curently done.
    • popUpMessage

      public void popUpMessage(String message)
      A null view action that do nothing.
      Specified by:
      popUpMessage in interface View
      Parameters:
      message - the message to print.
    • popUpQuestion

      public String popUpQuestion(String message)
      A null view action that do nothing.
      Specified by:
      popUpQuestion in interface View
      Parameters:
      message - the message to print.
      Returns:
      the answer.
    • popUpQuestionYN

      public boolean popUpQuestionYN(String message, boolean important, fr.formiko.usual.CheckFunction cf)
      A null view action that do nothing.
      Specified by:
      popUpQuestionYN in interface View
      Parameters:
      message - the message to print.
      important - some gui action will be done if true
      cf - CheckFunction to use to get text, default checked & launch function
      Returns:
      the answer.
    • setPlayingAnt

      public void setPlayingAnt(Fourmi f)
      A null view action that do nothing.
      Specified by:
      setPlayingAnt in interface View
    • move

      public void move(ObjetSurCarteAId o, CCase from, CCase to)
      A null view action that do nothing.
      Specified by:
      move in interface View
      Parameters:
      o - object to move.
      from - CCase that o leave.
      to - CCase were o is going.