Class TourCreatureSansAction

java.lang.Object
fr.formiko.formiko.interfaces.TourCreatureSansAction
All Implemented Interfaces:
Tour, Serializable

public class TourCreatureSansAction extends Object implements Serializable, Tour
Creature implementation.
Allow a creature without any action aviable to play a turn
Maybe that's not usefull because if action < 0 creature will already end there turn.
Author:
Hydrolien
See Also:
  • Constructor Details

    • TourCreatureSansAction

      public TourCreatureSansAction()
  • Method Details

    • unTour

      public void unTour(Creature c)
      PLay 1 turn with Creature c.
      Specified by:
      unTour in interface Tour
      Parameters:
      c - The Creature that need to play a turn.
    • preTurn

      public void preTurn(Creature c)
    • tour

      public void tour(Creature c)
      Do turn actions :
      manger, grandir (age).
      if Evoluer != null and age >=maxAge
      if fourmi : salir
    • endTurn

      public void endTurn(Creature c)
      End a turn.
      If turn have already be end on this turn, it will do nothing.
      Specified by:
      endTurn in interface Tour
      Parameters:
      c - The Creature that need to end a turn.