Class StepForwardToken

java.lang.Object
it.polimi.ingsw.model.singleplayer.StepForwardToken
All Implemented Interfaces:
ActionToken

public class StepForwardToken
extends java.lang.Object
implements ActionToken
Represents Lorenzo's action tokens that move foreword of two position Lorenzo's faith marker in a single player game
  • Constructor Summary

    Constructors
    Constructor Description
    StepForwardToken()  
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object obj)  
    void useToken​(java.util.List<ActionToken> tokens, LorenzoTrack trackLorenzo, DevelopCardDeck deck)
    Perform the token action: move foreword of two position Lorenzo's faith marker

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StepForwardToken

      public StepForwardToken()
  • Method Details

    • useToken

      public void useToken​(java.util.List<ActionToken> tokens, LorenzoTrack trackLorenzo, DevelopCardDeck deck)
      Perform the token action: move foreword of two position Lorenzo's faith marker
      Specified by:
      useToken in interface ActionToken
      Parameters:
      tokens - this parameter will be ignored in this type of token
      trackLorenzo - Lorenzo's track Lorenzo's track used to move foreword Lorenzo's faith marker
      deck - this parameter will be ignored in this type of token
    • equals

      public boolean equals​(java.lang.Object obj)
      Overrides:
      equals in class java.lang.Object